View source: R/convertDataFrameListsToVectors.R
convertDataFrameListsToVectors | R Documentation |
Convert columns with list in data.frame to vector
convertDataFrameListsToVectors(df, delimiter = ";")
df |
a data.frame |
delimiter |
a delimiter to concatenate (DEFAULT: ;) |
a data.frame without list columns
Lists as columns are useful programmatically, but cause issue in writing output to text-based files
df <- data.frame(id = 1:2, name = c("Jon", "Mark"), children = I(list(c("Mary", "James"), c("Greta", "Sally")))) df <- convertDataFrameListsToVectors(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.