Description Usage Arguments Value See Also Examples
These predicates check for a given type and whether the vector is "scalar", that is, of length 1.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
x |
object to be tested. |
TRUE
or FALSE
Other type.predicates: bare-type-predicates
,
type-predicates
1 2 3 4 5 | is_scalar_list(list(1))
is_scalar_list(list(1, 2))
is_integer(1:2)
is_scalar_integer(1:2)
is_scalar_integer(1L)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.