# distances

[![CRAN Status](https://www.r-pkg.org/badges/version/distances)](https://cran.r-project.org/package=distances)

The `distances` package provides tools for constructing, manipulating and using distance metrics in R. It calculates distances only as needed (unlike the standard `dist` function which derives the complete distance matrix when called). This saves memory and can increase speed. The package also includes functions for fast nearest and farthest neighbor searching.


## How to install

`distances` is on CRAN and can be installed by running:

```{r}
install.packages("distances")
```
