split_vector: split a vector on an element
Description
Why doesn't this exist?
Usage
split_vector(vector, index, remove_splits = TRUE)
Arguments
index
where to split the vector
remove_splits
to return with or without the index points
Value
a list of vectors split not including split point