cov() function in R Language is used to measure the covariance between two vectors.
Syntax: cov(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.