[R] Convert daily to weekly ts ?

Thomas Lumley tlumley at u.washington.edu
Thu Oct 3 15:41:43 CEST 2002


On Wed, 2 Oct 2002, FWR wrote:

> Have 3.5 years daily data that I want to convert to weekly. Looking for
> something like SAS's "expand" function, where you can specify the
> conversion function (sum, average, etc.) and get a new vector out with
> different sampling frequencies.
>

aggregate().

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list