Answer by Ian Campbell for Can I use the unlist function in a dataframe?
As @Gregor notes, data.frames are lists. Consider the following example:df <- data.frame(Col1 = LETTERS[1:5], Col2 = 1:5, stringsAsFactors = FALSE)is.list(df)#[1] TRUETherefore, you can use lapply...
View ArticleCan I use the unlist function in a dataframe?
I was working with a list containing the words from a text and the tags classifying them. I was supposed to restore an old letter, and to do this i needed to extract only the words in a vector, so...
View Article
More Pages to Explore .....