Convert to an index vectorSource:
vec_as_index() has been renamed to
vec_as_location() and is
deprecated as of vctrs 0.2.2.
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
A single integer representing the total size of the object that
iis meant to index into.
iis a character vector,
namesshould be a character vector that
iwill be matched against to construct the index. Otherwise, not used. The default value of
NULLwill result in an error if
iis a character vector.