Skip to contents

Does the input contain elements that are all atomic?

Usage

allAreAtomic(x)

Arguments

x

Object.

Value

TRUE on success; FALSE on failure, with cause set.

Note

Updated 2023-09-29.

See also

Examples

## TRUE ====
allAreAtomic(data.frame(a = "foo", b = "bar"))
#> [1] TRUE
allAreAtomic(list(a = "foo", b = "bar"))
#> [1] TRUE

## FALSE ====
allAreAtomic(data.frame())
#> [1] FALSE
allAreAtomic(list(a = "x", b = list()))
#> [1] FALSE