Learn R Programming

sits (version 1.1.0)

.find_closest: Find the closest points.

Description

For each point in x, find the closest point in y (and their distance).

Usage

.find_closest(x, y = x)

Value

A data.frame with the columns from (row number in a), b (row number in b), and distance (in meters).

Arguments

x

An `sf` object (points).

y

An `sf` object (points).

Author

Alber Sanchez, alber.ipia@inpe.br