R/kmeansKA.R

Defines functions kmeansKA

Documented in kmeansKA

kmeansKA <- function(X, K, distancemetric = "euclidean", iter.max = 10, nstart = 1, algorithm = c("Hartigan-Wong"), trace = FALSE) {
    K <- KA(X, K, distancemetric)
    r = kmeans(X, K, iter.max, nstart, algorithm, trace)$cluster
    return(clustVec2partMat(r))
}

Try the UNCLES package in your browser

Any scripts or data that you put into this service are public.

UNCLES documentation built on May 30, 2017, 2:39 a.m.