I have produced an HCPC
object and would like to return a list of the observations and which clusters they have fallen into. I can't find a command to do this; does anyone know?
FYI, here is my work:
file <- read.csv("file", header=TRUE)
library(FactoMineR)
res.mca = MCA(file, graph=FALSE)
# manually cut tree according to inertia gain
res.hcpc = HCPC(res.mca, nb.clust=0)
Edit: A reproducible example:
library(FactoMineR)
data(tea)
res.mca <- MCA(tea, quanti.sup = 19, quali.sup = 20:36)
res.hcpc <- HCPC(res.mca, nb.clust = 5)