Description Usage Arguments Value
The simple helper function isScalar
just checks if its argument is
a scalar, i.e. a numeric vector of length 1.
It is implemented as length(x) == 1L && is.vector(x, mode = "numeric")
.
1 | isScalar(x)
|
x |
an |
A length-one logical vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.