Learn R Programming

funcy (version 1.0.1)

label2lowerk: Relabeling of clusters.

Description

Relabels arbitrary cluster labels for k classes to 1 to k.

Usage

label2lowerk(cluster)

Arguments

cluster

Original cluster labels.

Value

New cluster labels.

Examples

Run this code
# NOT RUN {
##Generating cluster labels for 4 clusters
cl <- rep(sample(2:10, 4), sample(3:5,4, replace=TRUE))
cl

##Labels them to 1:4
label2lowerk(cl)
# }

Run the code above in your browser using DataLab