Description Usage Details Value Examples
allCombApply
applies a function to all combination of columns
1 | allCombApply(inmat, FUN, ...)
|
FUN
should have two (vector) parameters such as function(v1, v2) {cor(v1, v2)}
data.frame (or vector) with (n*(n-1)/2) columns (or elements)
1 | allCombApply(matrix(c(1, 2, 3, 4, 5, 6, 7, 8), nrow = 2), function(v1, v2) {v1-v2})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.