Apply a Function to All Pairs of Elements in x or Between x and y
comply.RdApply a Function to All Pairs of Elements in x or Between x and y
Arguments
- x
a vector or a list of vectors
- y
a vector or a list of vectors. If y is NULL, y will be set to x, such that if x is a list, the function FUN will be applied to all pairs of vectors in the list. Default: NULL
- FUN
the function to be applied to every pair of elements in
x, or to every pair of elements betweenxandy. The function should take two arguments and return a numeric value. Default: intersect- ...
optional arguments to 'FUN'.
- simplify
logical; should the result be simplified to a matrix? Default: TRUE