View source: R/ClusterNormalize.R
ClusterNormalize | R Documentation |
Values in Cls are consistently recoded to positive consecutive integers
ClusterNormalize(Cls)
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. |
For recoding depending on cluster size please see ClusterRenameDescendingSize
.
The renamed classification. A vector of clusters recoded to positive consecutive integers.
.
ClusterRenameDescendingSize
data('Lsun3D')
Cls=Lsun3D$Cls
#not desceending cluster numbers
Cls[Cls==1]=543
Cls[Cls==4]=1
# Now ordered consecutively
ClusterNormalize(Cls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.