Displaying 1 result from an estimated 1 matches for "benchmarknam".
Did you mean:
benchmarkname
2009 Jul 10
3
strange strsplit gsub problem 0 is this a bug or a string length limitation?
...2+A43+A44+A45+A46+A47+A48+A49+A50+A51+A52+A53+A54+A55+A56+A57+A58+A59+A60+A61+A62+A63+A64+A65+A66+A67+A68+A69+A70+A71+A72+A73+A74+A75+A76+A77+A78+A79+A80+A81+A82+A83+A84+A85+A86+A87+A88+A89+A90+A91+A92+A93+A94+A95+A96+A97+A98+A99+A100+A101+A102+A103+A104+A105+A106+A107+A108+A109+A110+A111+A112+A113
benchmarkName = as.character(backtestFormula)[2]
print(as.character(backtestFormula)[3])
print(benchmarkName)
assetsNames <- strsplit(gsub(" ", "", as.character(backtestFormula)[3]),
"\\+")[[1]]
nAssets = length(assetsNames)
print(nAssets)
list(assetsNames)
============...