Is given argument an atomic vector or factor of length 1?
More specific functions for scalars of a given type exist, too.
isScalarValue(x, na.ok = TRUE, null.ok = FALSE, type = "atomic") isScalarLogical(x, na.ok = TRUE, null.ok = FALSE) isScalarNumeric(x, na.ok = TRUE, null.ok = FALSE) isScalarInteger(x, na.ok = TRUE, null.ok = FALSE) isScalarComplex(x, na.ok = TRUE, null.ok = FALSE) isScalarCharacter(x, na.ok = TRUE, null.ok = FALSE) isScalarFactor(x, na.ok = TRUE, null.ok = FALSE)
x |
[any] |
na.ok |
[ |
null.ok |
[ |
type |
[ |
[logical(1)
].
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.