Description Usage Arguments Details Examples
View source: R/collapse_labels.R
Performs a permutation on the group labels so that, if K
non-empty groups are present, the labels used are exactly {1, ..., K
}.
1 | CollapseLabels(decision)
|
decision |
A vector identifying a partition. The entries must be positive integers. |
The labels of the clustering provided {1,...,G}
are mapped into {1,...,K}
(K is less or equal than G
) based on their order of appearance in the vector provided.
1 2 3 | set.seed(123)
decision <- sample(1:50, 50, TRUE)
CollapseLabels(decision = decision)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.