Re: [R] Principle component analysis function

From: Paul Hiemstra <p.hiemstra_at_geo.uu.nl>
Date: Thu, 06 Mar 2008 14:40:42 +0100

phthao05 wrote:
> Dear All,
> In a package, I want to use PCA function. The structure I used follow this
> page: http://www.statmethods.net/advstats/factor.html.
> fit<-principle(mydata, nfactors=9, rotation=TRUE)
> or:
> result<-PCA(mydata)
>
> But I don't known why R language in my computer noticed: "not found
> principle", "not found PCA".
> I download and installed R-2.6.2-win32.exe.
> Thanks alot for answering me.
> Hue University, VietNam.
>
Hi,

You can use the prcomp() function to perform a principal component analysis, it is part of the standard installation of R.

As a tip for finding the functions you need, use help.search() (e.g. help.seach("principal component"))

cheers,
Paul

-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone: 	+31302535773
Fax:	+31302531145
http://intamap.geo.uu.nl/~paul

______________________________________________
R-help_at_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.
Received on Thu 06 Mar 2008 - 14:01:11 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 Thu 06 Mar 2008 - 14:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive