Re: [R] Hourly Time Series

2006-12-16 Thread Jeffrey J. Hallman
The 'fame' package I submitted to CRAN can handle hourly, minutely, and
secondly series.  The first submission I made last night did not build
correctly on a Linux machine without the FAME libraries, but the one I put up
this morning has fixed that. It should be available soon, unless I missed
another problem (entirely possible).
-- 
Jeff

__
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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Hourly Time Series

2006-12-16 Thread Gabor Grothendieck
Using zoo would allow you to retain the date/time portion.  In ts you would
have to represent them as numbers; however, as you can easily switch
from zoo to ts you probably want to use zoo in the first instance:

library(zoo)
library(chron)
Lines <- "DateIDHourIDMetrics
2006092001
2006092012"
z <- read.zoo(textConnection(Lines), header = TRUE, format = "%Y%m%d")
metrics <- aggregate(z[,2], chron(unclass(time(z))) + unclass(z[,1])/24, sum)
metrics
as.ts(metrics)


On 12/11/06, Harshal D Dedhia <[EMAIL PROTECTED]> wrote:
> I have hourly data for approximately 21 days in the following format
>
> DateIDHourIDMetrics
> 200609200xx
> 200609201xx
>
> The hour ids correspond to one hour windows starting 00:00 to 23:59.
>
> I have never dealt with TS data before. What is the best way to handle
> this data? TS objects or use the Zoo package?
>
> Thanks in advance.
>
>[[alternative HTML version deleted]]
>
> __
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] Hourly Time Series

2006-12-11 Thread Harshal D Dedhia
I have hourly data for approximately 21 days in the following format
 
DateIDHourIDMetrics 
200609200xx
200609201xx
 
The hour ids correspond to one hour windows starting 00:00 to 23:59.
 
I have never dealt with TS data before. What is the best way to handle
this data? TS objects or use the Zoo package?
 
Thanks in advance.

[[alternative HTML version deleted]]

__
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
and provide commented, minimal, self-contained, reproducible code.