[R] Grouping rows of data by day

jennyed jen.wright at ed.ac.uk
Mon Apr 19 17:00:55 CEST 2010


Hi all,

I have a set of data in hourly time steps with each row identified as 
time          data column1             data column2
1                  9999                            9999
1.042            9999                            9999
1.083            9999                            9999            
1.125            9999                            9999
1.167            9999                            9999
1.208            9999                            9999
1.25             9999                            9999.....and so on (the
time column is in fractions of a day)

I want to be able to group the data by day. I managed to do this using:

Day1H = hourlydata[c(1:24),]

but I'd like to be able to create groups for each day without doing this
manually for each set of 24 rows. 

Any suggestions greatly appreciated

Thanks


-- 
View this message in context: http://n4.nabble.com/Grouping-rows-of-data-by-day-tp2016063p2016063.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list