Description Usage Arguments Value Author(s) See Also Examples
Returns the squared Euclidean distance or the Manhattan distance between all rows in x and the vector center.
1 2 |
x |
a matrix or data frame, or a vector to be interpreted as a one-row matrix. |
center |
a vector such that |
... |
no effect; included for signature compatibility with |
A vector of which the ith element is the squared Euclidean distance or the Manhattan distance between x[i,] and center.
Daniel Dvorkin
mahalanobis in package stats.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.