Search notes:

R function: is.vector

is.vector(obj) returns true of if the tested object (obj) is a vector or expression that has either no attributes or only the names attribute set.
In order to check if an object is an atomic vector, is.atomic() should be used. To test if the object is a list, is.list() should be used
vec <- c('one', 'two', 'three');
is.vector(vec);
#
#  TRUE

names(vec) <- c('A', 'B', 'C');
is.vector(vec);
#
#  TRUE

attr(vec, 'foo') <- 'bar';
is.vector(vec);
#
#  FALSE

lst <- list('e_1', 'e_2', 'e_3');
is.vector(lst);
#
#  TRUE

exp <- expression( 4 + 2:5 );
is.vector(exp);
#
#  TRUE
Github repository about-r, path: /functions/is.vector.R

See also

Index to (some) R functions
vectors

Index