I’m curious to know if R can use its eval() function to perform calculations provided by e.g. a string.

This is a common case:

eval("5+5")

However, instead of 10 I get:

[1] "5+5"

Any solution?

7 Answers
7

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *