[R] How to convert a single column into many rows

2011-03-23 Thread Zablone Owiti
Dear users, I wish to convert a column of data containing pentad (5day mean data) from 1962 - 2000 into rows with each row having 73 values (ie. 73 pentads per year). 1962 pent1 pent2 pent73 . . . . 2000 pent1 pent2 ..pent73 What commands should I use to

Re: [R] How to convert a single column into many rows

2011-03-23 Thread Kenn Konstabel
On Wed, Mar 23, 2011 at 11:13 AM, Zablone Owiti zow...@ncst.go.ke wrote: Dear users, I wish to convert a column of data  containing  pentad (5day mean data) from 1962 - 2000 into rows with each row having 73 values (ie. 73 pentads per year).  1962  pent1  pent2  pent73 . .

Re: [R] How to convert a single column into many rows

2011-03-23 Thread Mikhail Titov
I guess matrix(x, ncol=73, byrow=TRUE) should work Mikhail -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Zablone Owiti Sent: Wednesday, March 23, 2011 6:14 AM To: r-help@r-project.org Subject: [R] How to convert a single