powered by
applies a (non-vectorized) function to a combination of vectors; substitute for outer
outer
apply2d(fun, x, y, ..., use_plyr = TRUE, .progress="none")
a matrix of the function applied to the combinations of the vector values
a function of two arguments (or a character string such as "*")
"*"
first vector
second vector
additional arguments to fun
fun
use methods from the plyr package?
plyr
progress bar type ("none", "text", "tk","win": see create_progress_bar)
"none"
"text"
"tk"
"win"
create_progress_bar
Ben Bolker
outer(1:3,1:3) ## this example would work with outer() too apply2d("*",1:3,1:3)
Run the code above in your browser using DataLab