jeromyanglim / learning_r

assorted notes to self while learning R
1 stars 0 forks source link

How to evaluate R character string as an expression? #13

Closed jeromyanglim closed 12 years ago

jeromyanglim commented 12 years ago
eval(parse(text='1+1'))

This returns 2

See also: http://stackoverflow.com/questions/1743698/r-eval-expression