Convert to a base subscript type
Convert i
to the base type expected by vec_as_location()
or
vec_as_location2()
. The values of the subscript type are
not checked in any way (length, missingness, negative elements).
vec_as_subscript( i, ..., logical = c("cast", "error"), numeric = c("cast", "error"), character = c("cast", "error"), arg = NULL ) vec_as_subscript2( i, ..., logical = c("cast", "error"), numeric = c("cast", "error"), character = c("cast", "error"), arg = NULL )
i |
An integer, character or logical vector specifying the
locations or names of the observations to get/set. Specify
|
... |
These dots are for future extensions and must be empty. |
logical, location, character |
How to handle logical, numeric, and character subscripts. If If |
arg |
The argument name to be displayed in error messages when
|
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.