[R] Remove " from a string

Scionforbai scionforbai at gmail.com
Fri Dec 8 15:11:18 CET 2006


If I understand what you need,

> Number=2
> x <- paste("NameOfFunction",as.character(Number),sep="")
> x
[1] "NameOfFunction2"

And you can use do.call(x, ...) to "get" your function.
Hope it helps,

Scionforbai




More information about the R-help mailing list