| makeFunctionOuter | R Documentation |
A vectorized function of two arguments is made returning the result for each pair structured as a matrix, or if it already returns an n-ary array, as an n+1-ary array with the last dimension splitted
makeFunctionOuter(f)
f |
the 2-ary working on vectors, lists or rows of matrices or datasets |
a function like f but returning the result for each pair of input structured with one more dimension.
makeFunctionOuter(\(x,y) exp(-abs(x-y)))(1:4,1:4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.