is_scalar {HuraultMisc} | R Documentation |
Test whether x is of length 1
Description
Test whether x is of length 1
Usage
is_scalar(x)
Arguments
x |
Object to be tested. |
Value
Logical
Examples
is_scalar(1) # TRUE
is_scalar("a") # TRUE
is_scalar(c(1, 2)) # FALSE
[Package HuraultMisc version 1.1.1 Index]