atomize: Atomize

Description Usage Arguments Details Value Note Examples

Description

Ensure all columns in the object are atomic.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
atomize(object, ...)

## S4 method for signature 'data.frame'
atomize(object)

## S4 method for signature 'DataFrame'
atomize(object)

## S4 method for signature 'Ranges'
atomize(object)

Arguments

object

Object.

...

Additional arguments.

Details

Keep only atomic columns. Complex columns won't write to disk as CSVs or work with R Markdown functions, in some cases.

Value

Modified object. Non-atomic columns (e.g. list or complex S4 classes) will be dropped.

Note

Updated 2021-08-24.

Examples

1
2
3
4
5
6
df <- DataFrame(
    "a" = "a",
    "b" = I(list("a" = seq_len(3L)))
)
lapply(df, is.atomic)
x <- atomize(df)

acidgenomics/pipette documentation built on Sept. 27, 2021, 9:10 a.m.