vec_as_index() has been renamed to
vec_as_location() and is
soft-deprecated as of vctrs 0.2.2.
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
A single integer representing the total size of the