pairs2matrix | R Documentation |
This functions converts a data frame where each row is a unique pairwise comparison to a (dis)similarity matrix.
pairs2matrix(pairs, object_1 = object_1, object_2 = object_2, measure, diag)
pairs |
A table with pairwise comparisons |
object_1 |
Name of the variable specifying the first object of the pair |
object_2 |
Name of the variable specifying the second object of the pair |
measure |
Name of the (dis)similarity variable |
diag |
Something to fill the diagonal with |
A matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.