[R] Dividing a vector into equal interval

Peng, C cpeng.usm at gmail.com
Fri Sep 10 21:55:57 CEST 2010


just store the broken sequences in a matrix:

M=matrix(1:12, ncol=3, byrow=FALSE)
> M
     [,1] [,2] [,3]
[1,]    1    5    9
[2,]    2    6   10
[3,]    3    7   11
[4,]    4    8   12

-- 
View this message in context: http://r.789695.n4.nabble.com/Dividing-a-vector-into-equal-interval-tp2534938p2535012.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list