oapply | R Documentation |
Outer apply It use the expand.grid to compute all possible
combination of X
and Y
, then call the mapply
with the combination generated and FUN
.
oapply(X, Y, FUN, switch_order = FALSE, ...)
X |
first argument to |
Y |
second argument to |
FUN |
a function to apply. See mapply |
switch_order |
Switch the order of |
... |
other arguments to mapply |
same as mapply.
TszKin Julian Chan ctszkin@gmail.com
mapply
oapply(11:15,1:5,choose) oapply(11:15,1:5,choose,switch_order=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.