Re: [R] how to create time series object

2009-11-10 Thread Gabor Grothendieck
There are a number of packages that can do this. With the zoo package its like this: library(zoo) z <- zoo(c(123.231, 240), as.Date(c("2009-10-1", "2009-10-3"))) # now you can do: z plot(z) See the 3 vignettes (pdf documents) that come with zoo: vignette(package = "zoo") # lists them vignette(

[R] how to create time series object

2009-11-09 Thread sdlywjl666
Dear all, Could you tell me how to create time series object, time=c('2009-10-1','2009-10-3','2009-10-4'...) data=c(124,231,240...) Thanks! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/l