distances: Calculating distances between two sets of points

View source: R/RcppExports.R

distancesR Documentation

Calculating distances between two sets of points

Description

Calculates pairwise distances between two sets of points.

Usage

distances(a, b)

Arguments

a

matrix containing a set of coordinates.

b

matrix containing another set of coordinates.

Value

A matrix with pairwise distances between the two sets of points.

Examples

dists <- distances(example.data$traps, example.data$mask)


b-steve/ascr documentation built on Aug. 15, 2022, 2:38 p.m.