Does anyone know how to multiply, or perform any binary operation, on two mathematical functions in R?
I'm trying to take something like:
f<-function(x){x+2}
g<-function(x){x}
and I want h = f * g, eventually to integrate h. I need to do things like this many times, so entering h manually isn't a viable option.