I want to get the loadings of components from pcaMethods.
To illustrate the problem, I have a matrix x
a | b | c | |
1 | ... | ... | ... |
2 | ... | ... | ... |
3 | ... | ... | ... |
By loadings(x), I get
PC1 | PC2 | |
a | ... | ... |
b | ... | ... |
c | ... | ... |
However, I want to get
PC1 | PC2 | |
1 | ... | ... |
2 | ... | ... |
3 | ... | ... |
Anyone knows how to do that?
Thanks a lot!