[R-sig-eco] Problem with PCA

florian gollnow florian.gollnow at gmail.com
Mon Aug 15 14:59:53 CEST 2011


You might like to try:
zouk<-read.table("C:\\Users\\Tableau1.csv",sep=";",dec=",",header=TRUE,row.n
ames=1)
zouk
TableauS1<-na.omit(zouk)      <----- CHANGED
library(FactoMineR)
res.pca<-PCA(TableauS1)

hope that helps
florian


-----Original Message-----
From: r-sig-ecology-bounces at r-project.org
[mailto:r-sig-ecology-bounces at r-project.org] On Behalf Of momadou sow
Sent: 15 August 2011 14:34
To: R-sig-ecology at r-project.org
Subject: [R-sig-eco] Problem with PCA

Hi,
I try to do
PCA, but I have some problems. Here a sample of my data in the attached
file.
I used this
code:
 
zouk<-read.table("C:\\Users\\Tableau1.csv",sep=";",dec=",",header=TRUE,row.n
ames=1)
zouk
TableauS1<-na.omit("C:\\Users\\Tableau1.csv")
# to delete NA
library(FactoMineR)
res.pca<-PCA(TableauS1)
But there a
problem because R give this message: The following variables are not
quantitative:  X
Thus, I
used: is.numeric(zouk$ARVI) to verified if each variable is numeric. They
are numeric. 
Could you
help me to see my problem? 
Thank you
in advance
Komine  



More information about the R-sig-ecology mailing list