[R-SIG-Finance] [R-sig-finance] quantmod: dailyReturn on a list of variables
patzoul
patzoul at free.fr
Wed Nov 5 23:08:58 CET 2008
I run the following code:
myAssets <- c("STOXX50E", "GSPC", "N225")
nbAssets <- NROW(myAssets)
myIndices <- paste("^", myAssets, sep="")
getSymbols(myIndices)
I would then like to apply the dailyReturn function on the 3 sets of data
that I loaded.
If I do dailyReturn(myAssets[1]) I get an error message.
What do I need to change?
--
View this message in context: http://www.nabble.com/quantmod%3A-dailyReturn-on-a-list-of-variables-tp20349043p20349043.html
Sent from the Rmetrics mailing list archive at Nabble.com.
More information about the R-SIG-Finance
mailing list