powered by
Relabels arbitrary cluster labels for k classes to 1 to k.
label2lowerk(cluster)
Original cluster labels.
New cluster labels.
# 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