powered by
Split vector
split_at(x, pos)
list
vector with positions to split.
Split vector at position(s). Returns a list with all elements before and after the split position.
if (FALSE) { set.seed(42) x <- sample(x = 1:10, size = 5) split_at(x = x, pos = 3) }
Run the code above in your browser using DataLab