powered by
Calculate inter-class inertia
BP(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])) BP(iris[, -5], cutree(m, 3))
Run the code above in your browser using DataLab