K-modes function to accept any categorical distance based on the function found in `klaR:kmodes`.
kmodesD(data, modes, distFun, iter.max = 10)
An object of class kmodes as found in `klaR` packages. An additional component specifies the categorical distance function found in `distFun`.
A matrix or data frame of categorical data. Objects have to be in rows, variables in columns.
The number of modes
Pairwise categorical distance function. A function accepting two categorical vectors.
The maximum number of iterations allowed.