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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.