Hi,
it could also be that during reading your csv the matrix became a character
matrix.
Try str(x); this should show you if your values are seen as numeric.
Also, if you have descriptive columns (e.g. date, labels, etc.) they must
be removed before calculating PCR.
With best regards
Brandstätter
Hi error message indicates that you have non numeric value in your table/
matrix. Replace missing value by NA and add na.rm= true in your command
prcomp.
Karim
Le 14 janv. 2015 00:27, R Help! emanek...@gmail.com a écrit :
Hello!
I am a beginner to R. I have read several guides, but still am
Hello!
I am a beginner to R. I have read several guides, but still am stuck on
this:
I have data in an excel csv file, on which I want to run PCA.
I'm not sure how the prcomp formula works. The help page states:
prcomp(x, retx = TRUE, center = TRUE, scale. = FALSE,
tol = NULL, ...)
what is x
I'd you keep reading the help file, the answer to your question is right there.
As for step by step... only you know what your data looks like. There are
various pitfalls one can encounter in getting data from a file into an object
in memory, but the basic idea is to use the read.csv function,
4 matches
Mail list logo