kmodesD | R Documentation |
K-modes function to accept any categorical distance based on the function found in 'klaR:kmodes'.
kmodesD(data, modes, distFun, iter.max = 10)
data |
A matrix or data frame of categorical data. Objects have to be in rows, variables in columns. |
modes |
The number of modes |
distFun |
Pairwise categorical distance function. A function accepting two categorical vectors. |
iter.max |
The maximum number of iterations allowed. |
An object of class kmodes as found in 'klaR' packages. An additional component specifies the categorical distance function found in 'distFun'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.