[R] Fixing Variables in a Function

Lorenzo Isella lorenzo.isella at gmail.com
Sat Oct 14 23:09:08 CEST 2006


Dear All,

I am working with functions of several variables, e.g. f(x,y,z).
At some point, I would like to fix y and z and consider the resulting
function of x only for numerical interation with the integrate
routine.
I know how to define a wrapper g<-function() {f(x,y,z)} , but I could
not get a sort of wrapper for two variables.
Any suggestions?
Many thanks

Lorenzo



More information about the R-help mailing list