Displaying 1 result from an estimated 1 matches for "rhs_eq".
Did you mean:
as_eq
2012 Mar 15
3
single, double or no quotes in expression
...sions and seems to make a difference if there is a quote
around the expression or not.
For example, package works with expressions such as
> expression(A + B)
but not with
> expression("A + B")
I now have a set of math expressions represented as strings, something like
this:
> rhs_eq<- c("0", "A + B", "B * (2+C)")
and want to make expressions without quotes out of it.
I tried
> lapply(lapply(rhs_eq, as.symbol), as.expression)
which only turns the double quotes into single quotes, but does not remove
the quotes.
I also played around with as....