what is the problem ?????????

require(FactoMineR) # Charger le package n?cessaire pour les m?thodes factorielle avec R
res=PCA(M,scale.unit=FALSE,quali.sup=3) # lancer la m?thode ACP pour les deux variables en d?clarant la 3eme comme illustrative
Error in [.data.frame(Xtot, , quali.sup, drop = FALSE) :
undefined columns selected

Hello,

your main problem is that you have selected undefined columns as the error tells you. If you provide a propper reprex, we could maybe provide some more help on this one.

Kind regards