[R] Execute a function

carla moreira carlamgmm at gmail.com
Fri Jul 20 13:05:59 CEST 2012


Hi,

I would like to evaluate a function, with 3 arguments, for instance, 

myfunc<-function(a,b,c) { sqrt(a)-exp(b)+4*c
                                                }

How to execute  myfunc(x,y,z), for all x, all y and all z, where x,y,z are
vectors?

Thank you very much in advance



--
View this message in context: http://r.789695.n4.nabble.com/Execute-a-function-tp4637182.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list