Quantcast
Channel: Can I use the unlist function in a dataframe? - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



Can 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
Browsing all 2 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>