Description Usage Arguments Value Examples
View source: R/create_pairwise_comparisons.R
Create pairwise comparisons by row or column
1 2 |
matrix |
a matrix or data.frame containing samples and observations |
ncores |
number of cores to parallelize by. Defaults to single-core |
by |
either "row" or "column", to specify if rows or columns are samples. Defaults to "row" |
distfun |
a function used to calculate distance between any pairwise comparisons. Defaults to sqrt(sum((x1 - x2) ^ 2)) (euclidian distance) |
a list of data.frames
1 2 | matrix <- replicate(20, rnorm(10))
create_pairwise_comparisons(matrix, ncores = 1) #not allowed to have parallel examples
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.