R/split_at.R
split_at.Rd
Split vector
split_at(x, pos)
Vector.
Vector with positions to split.
list
Split vector at position(s).
x <- c(1, 2, 3, 1, 5, 3, 1) split_at(x, pos = c(2, 5)) #> [[1]] #> [1] 1 #> #> [[2]] #> [1] 2 3 1 #> #> [[3]] #> [1] 5 3 1 #>