Displaying 1 result from an estimated 1 matches for "myouter".
Did you mean:
mouter
2001 Sep 23
1
more about outer
this is my current answer to my own question.
should we have such a funcion in a more general version
(i.e. with an arbitraty number of argument lists, for n-ary
functions)
in the core language?
myouter<-function(x,y,fun){
t(sapply(x,function(arg1) sapply(y,function(arg2) fun(arg1,arg2))))
}
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "...