View source: R/ClusterCreateClassification.R
ClusterCreateClassification | R Documentation |
Creates a Cls from arbitrary list of objects
ClusterCreateClassification(Objects,Decreasing)
Objects |
Listed objects, for example factor |
Decreasing |
Boolean that can be missing. If given, sorts |
ClusterNames
can be sorted before the classification stored Cls
is created. See example.
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 |
Michael Thrun
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.