Skip to content

eval and as.name

2 messages · Fuchs Ira, Gabor Grothendieck

#
VERY nice.  That certainly works. Now how does one plot all three  
variables on one graph? :-)

Thanks very much.

Ira
On Feb 5, 2009, at 7:29 PM, Phil Spector wrote:

            
#
Try this:

library(quantmod)
s <- c("MSFT","AAPL","ORCL")

f <- function(x) Delt(Cl(getSymbols(x, auto.assign = FALSE)))
Delt3 <- do.call(merge, lapply(s, f))
plot(as.zoo(Delt3), screen = 1, col = 1:3)
On Thu, Feb 5, 2009 at 7:49 PM, Fuchs Ira <irafuchs at gmail.com> wrote: