[R] Evaluating a string

Jonathan Greenberg greenberg at ucdavis.edu
Thu Jul 1 23:54:33 CEST 2010


Rhelpers:

How do I get R to evaluate a string, as if it was an R statement, e.g.:

a=3
b=2
operator="-"
statement_string=paste(a,operator,b,sep="")

--j



More information about the R-help mailing list