Convert to a base subscript typeSource:
An integer, character or logical vector specifying the locations or names of the observations to get/set. Specify
TRUEto index all elements (as in
integer()to index none (as in
These dots are for future extensions and must be empty.
- logical, location, character
How to handle logical, numeric, and character subscripts.
"cast"and the subscript is not one of the three base types (logical, integer or character), the subscript is cast to the relevant base type, e.g. factors are coerced to character.
NULLis treated as an empty integer vector, and is thus coercible depending on the setting of
numeric. Symbols are treated as character vectors and thus coercible depending on the setting of
"error", the subscript type is disallowed and triggers an informative error.
The argument name to be displayed in error messages.
The execution environment of a currently running function, e.g.
caller_env(). The function will be mentioned in error messages as the source of the error. See the
abort()for more information.