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.
weights (Vector[Float]): |
List[Float] = NA Optional non-negative observation weights.
The correlation coefficient (-1 to 1).
cor(mtcars["mpg"], mtcars["wt"])