Re: evaluate one variable in an expression with two variables
On Wed, Feb 8, 2012 at 4:02 PM, moli <[hidden email]> wrote:
> I want to evaluate f with the mean=7
> f <- expression(-(x-mean)^2/2)
> then get a new expression:
> How could I do it? Thanks.
You can leave out the initial as.expression if you don't mind having a
call object instead: