[R] Working with FactoMineR

Mahmood Naderan-Tahan m@hmood@n@der@n @end|ng |rom ugent@be
Thu Feb 4 14:07:02 CET 2021


Hi,

I tried to run the HCPC example [1] in the online R [2], but got an error:



library(FactoMineR)
data(tea)
res.mca = MCA(tea, ncp=20, quanti.sup=19, quali.sup=c(20:36), graph=FALSE)
res.hcpc = HCPC(res.mca)



Result:

[1] "Click on the graph to cut the tree"
Error in while (coupe$y < min(t$tree$height)) { :
  argument is of length zero
Calls: HCPC
Execution halted


[1] "Click on the graph to cut the tree"

Error in while (coupe$y < min(t$tree$height)) { :

argument is of length zero

Calls: HCPC

Execution halted



May I know how to fix that?



[1] http://factominer.free.fr/factomethods/hierarchical-clustering-on-principal-components.html

[2] https://rdrr.io/snippets/


Regards,
Mahmood

	[[alternative HTML version deleted]]



More information about the R-help mailing list