vec_as_subscript | R Documentation |
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, call = caller_env() ) vec_as_subscript2( i, ..., numeric = c("cast", "error"), character = c("cast", "error"), arg = NULL, call = caller_env() )
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. |
call |
The execution environment of a currently
running function, e.g. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.