Example Data Sets

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 `i`

th 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 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.