Skip to content
Prev 347 / 15274 Next

Its function and yahoo

On Tue, 3 May 2005 22:16:37 -0400 Jonathan Q. wrote:

            
Please read this thread why I think that it should be improved.
And in which way is this not behaving as documented? If you should be
referring to the gaps, this is due to NAs. But you could do

z <- get.hist.quote(instrument = "CPN", quote = c("Ad", "Vol"),
  start = "2004-01-01", origin = "1970-01-01")
z <- as.zoo(z)
index(z) <- as.Date(index(z))
z <- na.omit(z)
plot(z)

to obtain a "zoo" object without NAs. Note, that I already pointed you
to this example.
Look at ?aggregate.zoo and look into the archives of this mailing list.
z[,"Volume"] <- z[,"Volume"]/1000000

and btw:

fortune("WTFM")

This is all documented in TFM. Those who WTFM don't want to have to WTFM
again on the mailing list. RTFM.
   -- Barry Rowlingson
      R-help (October 2003)

Z