Are there lots of missing values in the data? If so, my guess would be that
na.omit(h1) leaves you with no data. Have you checked this?

Bert Gunter
Genentech

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of SNN
Sent: Wednesday, December 26, 2007 2:49 PM
To: r-help@r-project.org
Subject: [R] Principal Components Analysis


Hi,

I do have a file that has 500000 columns and 40 rows. I want to apply PCA on
that data and this is what I did

h1<-read.table("Ccode.txt", sep='\t', header=F) # reads the data from the
file Ccode.txt
 h2<-prcomp(na.omit(h1),center=T)
 
but I am getting the following error
 
"Error in svd(x, nu = 0) : 0 extent dimensions"


I appreciate if someone can help

Thanks

-- 
View this message in context:
http://www.nabble.com/Principal--Components-Analysis-tp14507365p14507365.htm
l
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to