R-program to find correlation coefficient for the below data code example Example: calculate correlation in r cor(x, method = "pearson", use = "complete.obs")