Re: [R] aggregate for zoo or its?
Or for real power and flexibility, see the 'convert()' function in package tis. Jeff Gabor Grothendieck ggrothendi...@gmail.com writes: See ?aggregate.zoo, e.g. library(zoo) z - zoo(1:1000, as.Date(2000-01-01) + 0:999) aggregate(z, as.yearmon, mean) or replace mean with whatever summarization you want. On Sun, Mar 7, 2010 at 5:29 PM, Erin Hodgess erinm.hodg...@gmail.com wrote: Dear R People: The aggregate function works very well on regular time series. Is there a version for zoo or its that would take daily data and convert it to monthly, please? -- Jeff __ R-help@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.
[R] aggregate for zoo or its?
Dear R People: The aggregate function works very well on regular time series. Is there a version for zoo or its that would take daily data and convert it to monthly, please? Thanks in advance, Sincerely, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodg...@gmail.com __ R-help@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.
Re: [R] aggregate for zoo or its?
See ?aggregate.zoo, e.g. library(zoo) z - zoo(1:1000, as.Date(2000-01-01) + 0:999) aggregate(z, as.yearmon, mean) or replace mean with whatever summarization you want. On Sun, Mar 7, 2010 at 5:29 PM, Erin Hodgess erinm.hodg...@gmail.com wrote: Dear R People: The aggregate function works very well on regular time series. Is there a version for zoo or its that would take daily data and convert it to monthly, please? Thanks in advance, Sincerely, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodg...@gmail.com __ R-help@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. __ R-help@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.