is.scalar: Is an object of length one?

Description Usage Arguments See Also Examples

Description

Which elements in a list are of length one? Are all elements in a list of length one?

Usage

1
2
3
4
5
6
7

Arguments

x

An object to test.

See Also

Other Tests: are_false, are_null, are_true, has_command, is.empty, is.installed

Examples

1
2
3
4
5
is.scalar(1)
is.scalar(NULL)
are_scalar(list(1, 2, 3))
are_scalar(c(1, 2, 3))
all_scalar(list("a", "b", c("c", "d")))

gschofl/gsmisc documentation built on May 17, 2019, 8:52 a.m.