Answers for "how to do correlation in r example"

R
1

why is correlation na in r

cor(data, use = "complete.obs")
# complete.obs ignores the NA's
Posted by: Guest on September-08-2020
5

correlation matrix in r

result = cor(x, method = "pearson", use = "complete.obs")
round(result,2)
Posted by: Guest on September-08-2020

Code answers related to "how to do correlation in r example"

Browse Popular Code Answers by Language