Henrik Andersson
2005-Dec-02 11:35 UTC
[R] Seven month time-series sampled at hourly intervals
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. 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
Achim Zeileis
2005-Dec-02 12:16 UTC
[R] Seven month time-series sampled at hourly intervals
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 >
Gabor Grothendieck
2005-Dec-02 13:13 UTC
[R] Seven month time-series sampled at hourly intervals
In addition to prior suggestion look at: http://cran.r-project.org/doc/contrib/Ricci-refcard-ts.pdf http://zoonek2.free.fr/UNIX/48_R/15.html http://cran.r-project.org/src/contrib/Views/ On 12/2/05, Henrik Andersson <h.andersson at nioo.knaw.nl> 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. > > 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 >