
Last chance! 50% off unlimited learning
Sale ends in
Opposite of is.vector(). Check if entry is not vector
not.vector(x)
a boolean value to indicate if entry is vector
vector entry
vect1 = list(r=1,t=3:10)
vect2 = LETTERS
is.vector(vect1) # TRUE
not.vector(vect1) # FALSE
not.vector(vect2) # FALSE
if(not.vector(vect1)) message("yes") # NULL
Run the code above in your browser using DataLab