[R] Executing a R-string

Joe Trubisz jtrubisz at mac.com
Wed Jan 27 14:59:08 CET 2010


Hello...

In other languages (e.g. php, perl), you have the ability to create a  
valid string and execute the string to get the result. For example (in  
pseudo-R):

S<-"which(m==4)"
R<-exec(S)

I know this does not work, but was wondering if there was an  
equivalent mechanism that I cannot find in the docs anywhere to make  
it work.

Thanks,
Joe



More information about the R-help mailing list