[R] Calendar Time Series
Gabor Grothendieck
ggrothendieck at myway.com
Tue Nov 11 21:26:23 CET 2003
Using the chron package you could create your time
series like this (assuming it starts at Jan 25, 1999):
z <- ts(rnorm(25),start=as.numeric(chron("01/25/99")))
and then get back the times like this:
chron(time(z))
To plot it:
plot(chron(time(z)),z)
---
Date: Tue, 11 Nov 2003 11:34:10 -0500
From: Brian Beckage <bbeckage at uvm.edu>
To: <r-help at stat.math.ethz.ch>
Subject: [R] Calendar Time Series
Hello,
Does R have any facilities for calendar time series? I'm working
with a 40 year long, daily time series and I would like to have each
datum associated with a calendar date. I searched the R website and
found several new packages for irregular time series but none for cts.
By the way, I just installed 1.8.0 on Mac OSX and the installation
was effortless! I also very much like having the option of using R
on the Mac with Aqua or X11. Thanks to all who have contributed to
the R project!
Thanks for your help,
Brian
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list