Skip to content
Prev 3172 / 15274 Next

quantmod: dailyReturn on a list of variables

nbAssets in your code is simply the number 3.

Try:

myRet <- sapply(list(STOXX50E,GSPC,N225), dailyReturn)
cbind(myRet[[1]], myRet[[2]], myRet[[3]])

HTH
Jeff
On Wed, Nov 5, 2008 at 4:08 PM, patzoul <patzoul at free.fr> wrote: