Decreasing: Boolean that can be missing. If given, sorts ClusterNames with either decreasing or increasing.
Details
ClusterNames can be sorted before the classification stored Cls is created. See example.
Returns
LIST, with - Cls: [1:n] numerical vector with n numbers defining the labels of the classification. It has 1 to k unique numbers representing the arbitrary labels of the classification.
ClusterNames: ClusterNames defined which names belongs to which unique number
Author(s)
Michael Thrun
Examples
## Not run: Iris=datasets::iris
SomeFactors=Iris$Species
V=ClusterCreateClassification(SomeFactors) Cls=V$Cls
V$ClusterNames
table(Cls,SomeFactors)#Increasing alphabetical order V=ClusterCreateClassification(SomeFactors,Decreasing=FALSE) Cls=V$Cls
V$ClusterNames
table(Cls,SomeFactors)## End(Not run)