powered by
Calculate intra-class inertia
WP(DF, clusters)
numeric
a data.frame object.
a vector specifying the cluster of each individual.
Diego Jimenez <diego.jimenez@promidat.com>
m <- hclust(dist(iris[, -5])) WP(iris[, -5], cutree(m, 3))
Run the code above in your browser using DataLab