Re: [R] Sum per hour

From: Anup Nandialath <>
Date: Thu, 24 May 2007 12:29:07 -0700 (PDT)

hi jessica,

this should possibly do it...

year <-"2000-10-03","2000-10-03","2000-10-03","2000-10-03","2000-10-03","2000-10-03" ,"2000-10-03","2000-10-04","2000-10-04","2000-10-04")) colnames(year) <- c("year")
time <-"14:00:00","14:10:00","14:20:00","15:30:00","16:40:00","16:50:00", "17:00:00","17:10:00","17:20:00","18:30:00")) colnames(time) <- c("time")


DATA<-(cbind(year, time ,precipitation))

tapply(precipitation, year, sum)
tapply(precipitation, time, sum)        

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 May 2007 - 19:39:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 May 2007 - 20:33:11 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.