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 ron_michae...@yahoo.com wrote:
Thanks Gabor for your reply. However it seems that data is not downloaded
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
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 =
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.93750
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:
5 matches
Mail list logo