View source: R/mod_cluster_utils.R
calc.centros | R Documentation |
Calculation of the center of clusters
calc.centros(data, clusters)
data |
a data.frame object. |
clusters |
a vector specifying the cluster of each individual. |
list
Diego Jimenez <diego.jimenez@promidat.com>
clusters <- factor(kmeans(iris[, -5], 3)$cluster) calc.centros(iris[, -5], clusters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.