Answer Posted / Vijay Rana
"To measure correlation in R, use the cor() function. This function calculates the Pearson's correlation coefficient between two vectors or matrices.nnExample:n```Rnx <- c(1, 2, 3, 4, 5)ny <- c(2, 4, 6, 8, 10)ncor(x, y)n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers