Hi everyone,

I've relatively new to R, and i'm trying to use it to perform a Principal
Components analysis (PCA)
I've done this using WEKA previously, and now i'm trying to do so using R's
prcomp and princomp (both options would work for me).

One problem i've found is that while WEKA PCA allows us to specify a class
/ outcome variable / column for the dataset, apparently R project (both
prcomp and princomp) don't.

I've read through a number of documents including this
<http://cran.r-project.org/web/packages/HSAUR/vignettes/Ch_principal_components_analysis.pdf>
with limited success, so wanted to raise this question here. How does one
set the class variable when performing a PCA ?
Any advice would be  greatly appreciated !


-- 
Best Regards,
Suranga

        [[alternative HTML version deleted]]

______________________________________________
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