[R] how to split data.frame by row?

XU Denver financialengine at gmail.com
Sat Nov 3 12:14:28 CET 2007


maybe you need this
q<-matrix(1:60,20,3)
matrix(q,10,6)
matrix(q,5,12)





2007/10/29, Weiwei Shi <helprhelp at gmail.com>:
> hi,
>
> if I have 20 x 3 data.frame, how to split it into
> 10 x 6 (moving the lower part of 10x3 to column)
>
> or
>
> 5 x 12
>
> thanks
>
> --
> Weiwei Shi, Ph.D
> Research Scientist
> GeneGO, Inc.
>
> "Did you always know?"
> "No, I did not. But I believed..."
> ---Matrix III
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list