ClusterRename function

Renames Clustering

Renames Clustering

Renames Clustering such that the names of the numerical vectors are the row names of DataOrDistances

ClusterRename(Cls, DataOrDistances)

Arguments

  • 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

Details

If DataOrDistances is missing or if inconsistent length, nothing is done.

Returns

Cls[1:n] numerical vector named after the row names of data

Author(s)

Michael Thrun

Examples

data('Hepta') Cls=Hepta$Cls Data=Hepta$Data# #prior Cls #Named Clustering ClusterRename(Cls,Data)
  • Maintainer: Michael Thrun
  • License: GPL-3
  • Last published: 2023-10-19