Skip to content
Prev 389188 / 398506 Next

How to remove all rows that have a numeric in the first (or any) column

I'd like to point out that base R can handle a list as a data frame column,
it's just that you have to make the list of class "AsIs". So in your example

temp <- list("Hello", 1, 1.1, "bye")

data.frame(alpha = 1:4, beta = I(temp))

means that column "beta" will still be a list.



On Wed, Sep 15, 2021, 00:40 Avi Gross via R-help <r-help at r-project.org>
wrote: