Test for an Atomic Vector
is.avector
returns whether an object is an atomic vector with typeof
character, logical, integer, or double.
is.avector(x)
x |
= object whose structure is desired to be tested. |
is.avector
is simply a logical "and" of is.atomic
and is.vector
.
logical vector with length 1 specifying whether 'x' is an atomic vector.
is.avector(x = c(1,2,3)) is.avector(x = array(c(1,2,3))) # returns false for arrays is.avector(x = list(1,2,3)) # returns false for lists
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.