Checks for a vector of one of these types: c("integer", "numeric", "character", "logical", "raw", "complex")

is_vector(vec)

Arguments

vec

A vector

Examples

is_vector(1:5)
#> [1] TRUE
is_vector(list(1:5))
#> [1] FALSE
is_vector(matrix(1:4, 2))
#> [1] FALSE