I did something similar using the sprintf function. My main motivation wasn't the code speed, but the fact that I run multi-currency models, hence the PairID variable.


Code
TmpC[256];

sprintf(TmpC, "PredictionsLong <- predict(ModelLong%i%s", PairID, ", ModelCase[1:1,])")
Rx(TmpC, 0);