atomize | R Documentation |
Ensure all columns in the object are atomic
.
atomize(object, ...)
## S4 method for signature 'DFrame'
atomize(object)
## S4 method for signature 'Ranges'
atomize(object)
## S4 method for signature 'data.frame'
atomize(object)
object |
Object. |
... |
Additional arguments. |
Keep only atomic columns. Complex columns won't write to disk as CSVs or work with R Markdown functions, in some cases.
Modified object.
Non-atomic columns (e.g. list
or complex S4 classes) will be dropped.
Updated 2022-05-25.
df <- S4Vectors::DataFrame(
"a" = "a",
"b" = I(list("a" = seq_len(3L)))
)
lapply(df, is.atomic)
x <- atomize(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.