Message-ID: <1328734945084-4370877.post@n4.nabble.com>
Date: 2012-02-08T21:02:25Z
From: moli
Subject: evaluate one variable in an expression with two variables
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.