within.distance: within.distance

Description Usage Arguments Details Value Author(s)

Description

Compute distance threshold

Usage

1
  within.distance(x, y, distance = 1, units = "miles")

Arguments

x

Two-column matrix of latitude/longitude coordinates.

y

Two-column matrix of latitude/longitude coordinates.

distance

Vector of thresholds for whether points in y are close to points in x.

units

The unit of measurement that distance is in.

Details

Compute how many points in y fall within a certain distance of x.

Value

Matrix with nrows=nrow(x) and ncols=length(distance)

Author(s)

Jared P. Lander


jaredlander/mapping documentation built on May 18, 2019, 3:46 p.m.