SplitAt.Rd
Split a vector into several pieces at given positions.
SplitAt(x, pos)
the vector to be splitted.
integer vector, giving the positions at which the vector should be splitted.
a list with the splitted parts of x.
flodel (on StackOverflow)
https://stackoverflow.com/questions/16357962/r-split-numeric-vector-at-position
split, strsplit
split
strsplit
x <- 1:10 SplitAt(x, pos=c(3, 8)) #> [[1]] #> [1] 1 2 #> #> [[2]] #> [1] 3 4 5 6 7 #> #> [[3]] #> [1] 8 9 10 #>