I was only addressing the part about converting it to a zoo object.
Contact the fImport maintainer directly to sort out problems with that package.
On Thu, Jan 1, 2009 at 2:06 AM, RON70 wrote:
>
> Thanks Gabor for your reply. However it seems that data is not downloaded
> properly. Please take a
Thanks Gabor for your reply. However it seems that data is not downloaded
properly. Please take a look on downloaded data :
> tail(dat2, 20)
GMT
libor/day-ussnon
2008-11-25 0.93125
2008-11-26 0.98750
2008-11-28 NA
2008-12-01 1.08750
2008-12-02
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*/
Still it seems that it is not downloading data properly. For example
observation for date "2008-12-09 " is missing :
> tail(dat2, 30)
2008-10-02 2008-10-06 2008-10-08 2008-10-16 2008-10-20 2008-10-21 2008-10-22
2008-10-24 2008-10-27 2008-10-29 2008-10-30
2.681252.368755.375001.937
Oh my mistake, I missed the argument nDaysBack = 366.
However pls let me know how to change the data to zoo object.
RON70 wrote:
>
> I was trying to dw data from Economagic
> [http://www.economagic.com/em-cgi/data.exe/libor/day-ussnon], using
> following code :
>
> library(fimport)
> dat2 = e
I was trying to dw data from Economagic
[http://www.economagic.com/em-cgi/data.exe/libor/day-ussnon], using
following code :
library(fimport)
dat2 = economagicSeries("libor/day-ussnon", frequency = "daily")
Here I see that data is not complete, downloaded data starts from
"2007-12-31 ", whereas
6 matches
Mail list logo