This provides a common interface to extracting and modifying observations
for all vector types, regardless of dimensionality. It is an analog to [
that matches vec_size() instead of length().
Usage
vec_slice(x, i)
vec_slice(x, i) <- value
Arguments
x
A vector
i
An integer or character vector specifying the positions or
names of the observations to get/set.