ClusterCreateClassification function

Create Classification for Cluster.. functions

Create Classification for Cluster.. functions

Creates a Cls from arbitrary list of objects

ClusterCreateClassification(Objects,Decreasing)

Arguments

  • Objects: Listed objects, for example factor
  • 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)
  • Maintainer: Michael Thrun
  • License: GPL-3
  • Last published: 2023-10-19