nearest_neighbour_distance: For two sets of postions, find closest distance to a pos in...

View source: R/geo.R

nearest_neighbour_distanceR Documentation

For two sets of postions, find closest distance to a pos in second set for each in first with 'geo::dist_mat'.

Description

For two sets of postions, find closest distance to a pos in second set for each in first with 'geo::dist_mat'.

Usage

nearest_neighbour_distance(lat, lon, lat1 = NULL, lon1 = NULL)

Arguments

lat,

lon, lat1, lon1 Positions according to the 'geo' paradigm.


sigurdurthorjonsson/bionechi documentation built on Jan. 25, 2023, 6:37 p.m.