isVector

Returns true if x is a vector object.

Will return true if x is a vector or list, but false if x is a matrix.

R does not have a scalar type. "Scalars" in R are vectors with one element, so this function cannot be used to distinguish between vectors and scalars.
bool
isVector

Meta