powered by
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").
isScalar
length(x) == 1L && is.vector(x, mode = "numeric")
isScalar(x)
A length-one logical vector.
an R object.
R