[R] Creation of a new data frame
Steve Murray
smurray444 at hotmail.com
Thu Mar 25 14:32:46 CET 2010
Dear all,
I have a data frame of 18556 rows and 19 columns and wish to create a new grid from these data of dimensions 360 rows and 720 columns.
The existing data frame is set up so that every 38 rows makes up one row of the new data frame, with 2 NA values at the end of each 'block' that should be removed before being inserted into the new grid.
So to be clear, row 1 of the new data frame consists of rows 1:38 of the existing data frame, with the 2 NA values on the end removed. Row 2 is 39:77 and so on.
How do I go about creating this new 360 x 720 grid from existing data?
Many thanks,
Steve
_________________________________________________________________
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
More information about the R-help
mailing list