Re: [R] Seven month time-series sampled at hourly intervals

From: Achim Zeileis <Achim.Zeileis_at_wu-wien.ac.at>
Date: Fri 02 Dec 2005 - 23:16:42 EST

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@nioo.knaw.nl
> http://www.nioo.knaw.nl/ppages/handersson
>
> ______________________________________________
> R-help@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
>



R-help@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 Received on Fri Dec 02 23:43:33 2005

This archive was generated by hypermail 2.1.8 : Sat 03 Dec 2005 - 02:28:07 EST