Try this
result - summary(prcomp(USArrests))
names(result)
M - result$importance
M[2,]
The labels are the dimnames of the importance matrix. They only
show up when the matrix is printed. If you wish, you can remove
them with dimnames(M) - NULL.
--
Bjørn-Helge Mevik
Hello all,
I was wondering if anyone knew how to get R to only spit out a certain portion
of PRcomp data; namely, when I enter the following code, I get:
Summary(prcomp(USArrests))
Importance of components:
PC1 PC2 PC3 PC4
Standard Deviation 83.732 14.212