Message-ID: <AAD1951F-DF63-435B-888F-87652B839DFB@gmail.com>
Date: 2009-03-05T15:15:05Z
From: Fuchs Ira
Subject: character string as object name
Can someone please tell me why the following (last line) doesn't work
(as I expect it to :-)
library(quantmod)
a = getSymbols("MSFT",from="2009-3-01")
a
MSFT
eval(as.name(a))
MSFT$MSFT.Adjusted
b=paste(a,'$MSFT.Adjusted',sep='')
b
eval(as.name(b))
Why does this last line not work the way the earlier eval does?
Thanks.