Calculate the pearson correlation for the following data using R code example Example: calculate correlation in r cor(x, method = "pearson", use = "complete.obs")