ClusterRenameDescendingSize: ClusterRenameDescendingSize

Description Usage Arguments Value Author(s) Examples

View source: R/ClusterRenameDescendingSize.R

Description

Renames the clusters of a classification in descending order.

Usage

1

Arguments

Cls

[1:n numerical vector of numbers defining the classification as the main output of the clustering algorithm for the n cases of data. It has k unique numbers representing the arbitrary labels of the clustering.

Value

RenamedCls

The renamed classification. A vector of clusters, were the largest cluster is C1 and so forth

Author(s)

Michael Thrun, Alfred Ultsch

Examples

1
2
3
4
5
6
7
8
data('Lsun3D')
Cls=Lsun3D$Cls
#not desceending cluster numbers
Cls[Cls==1]=543
Cls[Cls==4]=1

# Now ordered ber cluster size and descending
ClusterRenameDescendingSize(Cls)

FCPS documentation built on July 8, 2021, 1:06 a.m.