![]() |
VOOZH | about |
cor() function in R Language is used to measure the correlation coefficient value between two vectors.
Syntax: cor(x, y, method) Parameters: x, y: Data vectors method: Type of method to be usedExample 1: Output:
[1] 0.9724702Example 2: Output:
[1] 1Example 3: Output:
[1] 1