vec_as_index()
has been renamed to vec_as_location()
and is
deprecated as of vctrs 0.2.2.
Arguments
- i
An integer, character or logical vector specifying the locations or names of the observations to get/set. Specify
TRUE
to index all elements (as inx[]
), orNULL
,FALSE
orinteger()
to index none (as inx[NULL]
).- n
A single integer representing the total size of the object that
i
is meant to index into.- names
If
i
is a character vector,names
should be a character vector thati
will be matched against to construct the index. Otherwise, not used. The default value ofNULL
will result in an error ifi
is a character vector.