I am trying to run PCA on a matrix (the first column and row are
headers). There are several cells with NA's. When I run PCA with the
following code:
______________________________________
setwd("I:/PCA")
AsianProp<-read.csv("Matrix.csv", sep=",", header=T, row.names=1)
attach(AsianProp)
AsianProp
AsianProp.pca<-princomp(AsianProp, na.omit)
_____________________________________
I get the error message:
cov.wt(z) : 'x' must contain finite values only
What am I doing wrong?
Thanks very much!
[[alternative HTML version deleted]]