powered by
Calculation of the center of clusters
calc.centros(data, clusters)
list
a data.frame object.
a vector specifying the cluster of each individual.
Diego Jimenez <diego.jimenez@promidat.com>
clusters <- factor(kmeans(iris[, -5], 3)$cluster) calc.centros(iris[, -5], clusters)
Run the code above in your browser using DataLab