README.md

distances

CRAN Status

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:

install.packages("distances")


Try the distances package in your browser

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

distances documentation built on Nov. 24, 2025, 10:16 a.m.