[R] summing 15 minute precip data to daily
Stephen Sefick
ssefick at gmail.com
Thu Feb 17 21:39:12 CET 2011
Janet:
The zoo package and aggregate.zoo should do the trick. I have done this
many times with these tools.
HTH,
Stephen
On Thu, 2011-02-17 at 11:56 -0800, Janet Choate wrote:
> Hi all,
> i'm sure there is an easy way to do this, but i'm stumped, so any help would
> be appreciated.
>
> i have a single column of data for precipitation every 15 minutes over a
> year. i want to sum the precip to daily data.
> so the first 96 records = the first day, the second 96 records = the second
> day, and so on....
> is there a way to write a for loop that would sum the data to daily, and
> write each value to a second object so i end up with a file of daily precip?
>
> thanx,
> Janet
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list