Skip to content
Prev 165694 / 398502 Next

Downloading data from Economagic

Try this (last line only needed if you want times as Date class):

library(zoo)
z <- zoo(as.matrix(dat2), time(dat2))
time(z) <- as.Date(time(z)) # optional


or you can use as.zoo.timeSeries from the devel version of zoo:

source("http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/*checkout*/pkg/R/as.zoo.R?rev=557&root=zoo")
z <- as.zoo(dat2)
time(z) <- as.Date(time(z)) # optional
On Tue, Dec 30, 2008 at 6:25 AM, RON70 <ron_michael70 at yahoo.com> wrote: