View source: R/data_manip_utils.R
ensure_atomic_columns | R Documentation |
Columns that are lists have each of their elements collapsed into strings using the sepcified separator.
ensure_atomic_columns(df, sep = ",")
df |
The data frame whose list columns should be collapsed |
sep |
The separator to use when collapsing vectors to scalars |
df
with all columns converted to atomic vectors.
collapse_to_atomic()
library(S4Vectors) x <- DataFrame(a = 1:5, b = List(split(1:25, 1:5))) ensure_atomic_columns(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.