A re-export of vctrs::vec_chop as an S7 generic
function to allow S4Vectors.
Arguments
- x
A vector
- ...
These dots are for future extensions and must be empty.
- indices
For
vec_chop(), a list of positive integer vectors to slicexwith, orNULL. Can't be used ifsizesis already specified. If bothindicesandsizesareNULL,xis split into its individual elements, equivalent to using anindicesofas.list(vec_seq_along(x)).For
list_unchop(), a list of positive integer vectors specifying the locations to place elements ofxin. Each element ofxis recycled to the size of the corresponding index vector. The size ofindicesmust match the size ofx. IfNULL,xis combined in the order it is provided in, which is equivalent to usingvec_c().