powered by
is.avector returns whether an object is an atomic vector with typeof character, logical, integer, or double.
is.avector
is.avector(x)
logical vector with length 1 specifying whether `x` is an atomic vector.
= object whose structure is desired to be tested.
is.avector is simply a logical "and" of is.atomic and is.vector.
is.atomic
is.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
Run the code above in your browser using DataLab