Closed jeromyanglim closed 12 years ago
eval(parse(text='1+1'))
This returns 2
2
1+1
parse
eval
See also: http://stackoverflow.com/questions/1743698/r-eval-expression
This returns
2
1+1
is the character expressionparse
creates an expression objecteval
evaluates the expressionSee also: http://stackoverflow.com/questions/1743698/r-eval-expression