isNumeric

Returns true if x holds a vector of integers or doubles.

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
isNumeric

Meta