vec_as_index(i, n, names = NULL)
An integer, character or logical vector specifying the
locations or names of the observations to get/set. Specify
TRUE to index all elements (as in
integer() to index none (as in
A single integer representing the total size of the
i is meant to index into.
i is a character vector,
names should be a character
i will be matched against to construct the index. Otherwise,
not used. The default value of
NULL will result in an error
i is a character vector.