Correlation
Computes the Pearson correlation coefficient between two vectors.
x (Vector): | List First numeric
vector.
y (Vector): | List Second numeric
vector.
na_rm (Bool): (Optional) Should
missing values be removed? Default is false.
The correlation coefficient (-1 to 1).
cor(mtcars["mpg"], mtcars["wt"])