[R] Seven month time-series sampled at hourly intervals
Achim Zeileis
Achim.Zeileis at wu-wien.ac.at
Fri Dec 2 13:16:42 CET 2005
On Fri, 02 Dec 2005 12:35:46 +0100 Henrik Andersson wrote:
> I have data from several sensors that recorded data at hourly
> intervals during seven months. I want to separate daily variation
> from the trend, and also be able to zoom in on only one month of data.
>
> I have not been able what functions to use, I can not figure out from
> the help for 'ts' how to use hourly data.
You could use a "ts" series with frequency 24, corresponding to hours
within a day. Alternatively, you can use the "zoo" or "zooreg" class
from package zoo along with POSIXct time stamps (or some other
user-defined format). See the vignette of the zoo package for more
details.
Z
> I guess this is routine-work for a lot of people so I hope someone
> can point me in the right direction.
>
> ---------------------------------------------
> Henrik Andersson
> Netherlands Institute of Ecology -
> Centre for Estuarine and Marine Ecology
> P.O. Box 140
> 4400 AC Yerseke
> Phone: +31 113 577473
> h.andersson at nioo.knaw.nl
> http://www.nioo.knaw.nl/ppages/handersson
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list