I'm running PCA with 31 variables, and I need to know which variable corresponds to the firs principal component and captures the most variance. Here is my code:
mat=cov(df_15[11:41])
pca=princomp(covmat=mat)
summary(pca)
But the output names the components without mentioning any variables. Is there a way to find what I'm looking for? Am I misunderstanding it?