Re: [R] PCA : Error in eigen(cv,

From: Tanya Yatsunenko <>
Date: Tue, 01 Jul 2008 11:03:57 -0500

Ok, the mistake was in the pca(x)<-princomp(SampleD[i,j]), should've used pca(x)<-princomp(SampleD) instead.
Now, is there anyway to keep track of the matrix index, so in the end of all PCAs, I can tell which score/loading belongs to which sample? Thanks everyone!

On Mon, Jun 30, 2008 at 9:08 PM, Tanya Yatsunenko <> wrote:

> Hi all,
> I am doing bootstrap on a distance matrix, in which samples have been drawn
> with replacement. After that I do PCA on a resulted matrix, and these 2
> steps are repeated 1000 times.
> pca(x) is a vector where I wanted to store all 1000 PCAs; and x is from 1
> to 1000
> SampleD is a new matrix after resampling;
> I am getting the following error message, which I don't understand:
> ....
> +pca(x)<-princomp(SampleD[i,j])
> + }
> Error in eigen(cv, symmetric = TRUE) : infinite or missing values in 'x'
> Should I maybe not use a vector, but matrix instead?
> Thanks!
> --
> Tanya.


	[[alternative HTML version deleted]]

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 01 Jul 2008 - 16:39:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jul 2008 - 02:30:55 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive