- Minor fix for CRAN

- Some bugfixes to make CRAN compatible

- Added documentation pages
- Added
`product_metric`

- Added
`farthest_point_sampling`

- Added
`is_distance_matrix`

and`triangle_inequality`

checks

- Fixed bug in jaccard distance
- Fixed bug in euclidean distance
- Added labels to rdist output

An R package to calculate distances. This provide a common framework to calculate distances.
There are three main functions:
- `rdist`

computes the pairwise distances between observations in one matrix and returns a `dist`

object,
- `pdist`

computes the pairwise distances between observations in one matrix and returns a `matrix`

, and
- `cdist`

computes the distances between observations in two matrices and returns a `matrix`

.

All functions have an argument `metric`

that can be used to specify the distance function. Available metrics are `"euclidean"`

, `"minkowski"`

, `"manhattan"`

, `"maximum"`

, `"canberra"`

, `"angular"`

, `"correlation"`

, `"absolute_correlation"`

, `"hamming"`

, and `"jaccard"`

.
All functions will return NA or NaN when one of the compared vectors contains NAs.

To install the latest released version from CRAN:

```
install.packages("rdist")
```

To install the latest development version from github:

```
install.packages("devtools")
devtools::install_github("blasern/rdist")
```

If you find issues, please let me know. If you would like to contribute, please create a pull request.

**Any scripts or data that you put into this service are public.**

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.