Learn R Programming

mcclust (version 1.0)

norm.label: Norm Labelling of a Clustering

Description

Cluster labels of a clusterings are replaced by 1:length(table(cl)).

Usage

norm.label(cl)

Arguments

cl

vector of cluster memberships

Value

the clustering with normed labels.

See Also

relabel for labelling a sample of clusterings the same way

Examples

Run this code
# NOT RUN {
(cl <- sample(c(13,12,34), 13, replace=TRUE))
norm.label(cl)

(cl <- sample(c("a","b","f31"), 13, replace=TRUE))
norm.label(cl)
# }

Run the code above in your browser using DataLab