search for: eqn1string

Displaying 1 result from an estimated 1 matches for "eqn1string".

Did you mean: envstring
2012 Mar 15
1
Equation as a character string
I'm trying to figure out if it's possible to use a character string as an equation, e.g: eqn1string <- "x^2 + x + 5" Then I want to tell R: 1) that eqn1string is actually an equation (even though it was stored as a character string), and 2) to apply the equation to a specified value of x (e.g. given x <- 6, what is the result of the equation). Thanks in advance for any insight...