View source: R/ClusterRename.R
ClusterRename | R Documentation |
Renames Clustering such that the names of the numerical vectors are the row names of DataOrDistances
ClusterRename(Cls, DataOrDistances)
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. |
DataOrDistances |
Either nonsymmetric [1:n,1:d] datamatrix of n cases and d features or symmetric [1:n,1:n] distance matrix |
If DataOrDistances is missing or if inconsistent length, nothing is done.
Cls[1:n] numerical vector named after the row names of data
Michael Thrun
data('Hepta')
Cls=Hepta$Cls
Data=Hepta$Data#
#prior
Cls
#Named Clustering
ClusterRename(Cls,Data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.