Hello (),

I'd like to do the following

a <- 3
f1 <- function (x){
 a*x^2
}

a <- 5
f2 <- function (x){
 a*x^2
}

plotting f1, f2, ...

but f1 and f2 are the same, how can I evaluated the variables in the
function definition?

Thank you
      Dieter
-- 
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany

______________________________________________
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.

Reply via email to