| ClusterCount | R Documentation |
Calculates cluster counts and percentages.
ClusterCount(Cls,Ordered=TRUE,NonFinite=9999)
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. |
Ordered |
Optional logical scalar. If |
NonFinite |
Optional scalar used to replace non-finite values in |
When Ordered = FALSE, output order is determined by the first occurrence of each cluster label in Cls.
Non-numeric vectors are supported. In that case, Cls is converted with as.character(), a warning is issued, and the statistics are computed.
UniqueClusters |
A numerical vector containing the k unique cluster labels in |
CountPerCluster |
A named vector of length k containing the number of observations in each cluster. Its names are |
NumberOfClusters |
The number of clusters, k. |
ClusterPercentages |
A numerical vector of length k containing the percentage of observations in each cluster. |
Michael Thrun
data('Hepta')
Cls=Hepta$Cls
ClusterCount(Cls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.