[R] how to create daily / weekly ts object?
ggrothendieck at gmail.com
Fri Jan 26 17:20:46 CET 2007
If you want the dates to show up as such you are better off using
a zooreg object with times of class "Date" from the zoo package.
You can always use as.ts on it if you require a ts object.
zd <- zooreg(1:10, start = Sys.Date())
zw <- zooreg(1:10, start = Sys.Date(), delta = 7)
plot(zw, type = "p")
points(zd, pch = "+")
On 1/26/07, Wensui Liu <liuwensui at gmail.com> wrote:
> Dear All,
> Monthly and Quarterly ts obj. is easy to understand. But I couldn't
> find an example in R manual how to create daily or weekly ts object.
> Could you please shed some light on it?
> I really appreciate it.
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help