Learn R Programming

spNetwork (version 0.1.1)

closest_points: Find closest points

Description

build a quadtree index and solve the nearest neighbour problem for two SpatialPointsDataFrame.

Usage

closest_points(origins, targets)

Arguments

origins

a SpatialPointsDataFrame

targets

a SpatialPointsDataFrame

Value

for each origin point, the index of the nearest target point

Examples

Run this code
# NOT RUN {
#This is an internal function, no example provided
# }

Run the code above in your browser using DataLab