How to find the the correlation between the variables in PCA

r
pca

#1

I am studying about PCA and I came across for determining the components we need to determine the correlation between the variable
I am doing a problem in which the data looks like
head(my.wines)
Wine Hedonic Meat Dessert Price Sugar Alcohol Acidity
1 Wine_1 14 7 8 7 7 13 7
2 Wine_2 10 7 6 4 3 14 7
3 Wine_3 8 5 5 10 5 12 5
4 Wine_4 2 4 7 16 7 11 3
5 Wine_5 6 2 4 13 3 10 3
I want to correlation between the all six columns other than wine column


#2

To determine the correlation between variables you can use the the cor() function.
use

?cor

or see the link below:
http://www.statmethods.net/stats/correlations.html

The command
cor( my.wines[,2:6]) should work.