[R] How to split a single vector into a multiple-column and multiple-row matrix

2005-03-25 Thread R_xprt_wannabe
Dear List, I have, say, a 2000x1 numeric vector and would like to split it into, say, a 200x10 matrix. Any help is appreciated. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] How to split a single vector into a multiple-column and multiple-row matrix

2005-03-25 Thread Roger D. Peng
You can use 'matrix()', as in x - 1:2000 matrix(x, nrow = 200, ncol = 10) -roger R_xprt_wannabe wrote: Dear List, I have, say, a 2000x1 numeric vector and would like to split it into, say, a 200x10 matrix. Any help is appreciated. __