Split a Vector Into Several Pieces at Given Positions
Split a vector into several pieces at given positions.
SplitAt(x, pos)
x |
the vector to be splitted. |
pos |
integer vector, giving the positions at which the vector should be splitted. |
a list with the splitted parts of x.
flodel (on StackOverflow)
x <- 1:10 SplitAt(x, pos=c(3, 8))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.