[R] evaluate one variable in an expression with two variables
moli
nirdong at gmail.com
Wed Feb 8 22:02:25 CET 2012
I want to evaluate f with the mean=7
mean=7
f <- expression(-(x-mean)^2/2)
then get a new expression:
-(x-7)^2/2
How could I do it? Thanks.
--
View this message in context: http://r.789695.n4.nabble.com/evaluate-one-variable-in-an-expression-with-two-variables-tp4370877p4370877.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list