Re: [R] How to re-arrange data in R

2010-05-07 Thread Marshall Feldman
Hi Zablone, I have a few questions about your data, but think the reshape package is ultimately what you want. So just look at it and see if you can get it to do what you want. Marsh Feldman On Fri, 7 May 2010 01:21:09 -0700 , Zablone Owiti wrote: > Dear users, > > I have monthly station

Re: [R] How to re-arrange data in R

2010-05-07 Thread Joris Meys
Take a look at the package reshape, the functions ?melt and ?cast. Take a look at their website as well : http://had.co.nz/reshape/ Cheers Joris On Fri, May 7, 2010 at 10:21 AM, Zablone Owiti wrote: > Dear users, > > I have monthly station data (44) stations data for 45 years which I have > rea

[R] How to re-arrange data in R

2010-05-07 Thread Zablone Owiti
Dear users, I have monthly station data (44) stations data for 45 years which I have read in R using read.table. the data is in the format: Year Month Station1 Station2 .. Station 44 (i.e the column names in the 1st row), I also have the latitude and l