Description Usage Arguments Value
View source: R/MatchClusters.R
Optimal match between two different cluster/class assignments
1 | MatchClusters(x, r)
|
x |
integer vector representing a set of cluster/class memberships. |
r |
integer vector representing an alternative set of cluster/class memberships (e.g. reference or ground truth assignments). |
MatchClusters
returns an integer matrix with the following columns:
x2r |
translation from x to r cluster/class identifiers |
r2x |
translation from r to x cluster/class identifiers |
For instance, noting m
such translation matrix, then
m[3, "x2r"] |
is the best matching cluster identifier |
m[5, "r2x"] |
is the best matching cluster identifier |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.