cor() function in R Language is used to measure the correlation coefficient value between two vectors.
Syntax: cor(x, y, method)
x, y: Data vectors
method: Type of method to be used
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.