Bonjour,
J'ai récupèré les donnée d'un fichier .csv, mis ces données dans une matrice puis j'ai voulu faire un PCA sur cette matrice mais j'ai ce message d'erreur :
voici les commandes que j'ai fait :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 Error in PCA(a) : The following variables are not quantitative: V1 The following variables are not quantitative: V2 The following variables are not quantitative: V3 The following variables are not quantitative: V4 The following variables are not quantitative: V5
valeur a
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 library(pixmap) library(FactoMineR) a = read.csv("cheminAbsolu/a.csv") a = as.matrix(Iris) b = PCA(a)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 [,1] [,2] [,3] [,4] [1,] "5.1" "3.5" "1.4" "0.2" [2,] "4.9" "3.0" "1.4" "0.2" [3,] "4.7" "3.2" "1.3" "0.2" ...
Partager