Description Usage Arguments See Also Examples
Which elements in a list are of length one? Are all elements in a list of length one?
1 2 3 4 5 6 7 | is.scalar(x)
are_scalar(x)
all_scalar(x)
is.string(x)
|
x |
An object to test. |
Other Tests: are_false
,
are_null
, are_true
,
has_command
, is.empty
,
is.installed
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")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.