atomize: Atomize

atomizeR Documentation

Atomize

Description

Ensure all columns in the object are atomic.

Usage

atomize(object, ...)

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

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

## S4 method for signature 'data.frame'
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 2022-05-25.

Examples

df <- S4Vectors::DataFrame(
    "a" = "a",
    "b" = I(list("a" = seq_len(3L)))
)
lapply(df, is.atomic)
x <- atomize(df)

acidgenomics/r-pipette documentation built on Jan. 17, 2024, 4:30 p.m.