For vector, a vector of the given length and mode. Logical
vector elements are initialized to FALSE, numeric vector
elements to 0, character vector elements to "", raw
vector elements to nul bytes and list/expression elements to
NULL.
For as.vector, a vector (atomic or of type list or expression).
All attributes are removed from the result if it is of an atomic mode,
but not in general for a list result. The default method handles 24
input types and 12 values of type: the details of most
coercions are undocumented and subject to change.
For is.vector, TRUE or FALSE.
is.vector(x, mode = "numeric") can be true for vectors of types
"integer" or "double" whereas is.vector(x, mode =
"double") can only be true for those of type "double".