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
pdist computes the pairwise distances between observations in one matrix and returns a
cdist computes the distances between observations in two matrices and returns a
All functions have an argument
metric that can be used to specify the distance function. Available metrics are
All functions will return NA or NaN when one of the compared vectors contains NAs.
To install the latest released version from CRAN:
To install the latest development version from github:
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.