geo-registry

sf::st_nearest_feature

How sf runs Nearest Join: sf::st_nearest_feature.

About this implementation
Engine sf
Tool name sf::st_nearest_feature
Interface r
Implements Nearest Join
Documentation Not stated
Effects modifies input: no, network: no
Notes Not stated
Status active

Parameters

Name Type Required Default Choices Note
x any yes Not stated Not stated Not stated
y any yes Not stated Not stated Not stated
... dots no Not stated Not stated further arguments passed on
check_crs any no TRUE Not stated Not stated
longlat any no isTRUE(st_is_longlat(x)) Not stated Not stated

How it maps to the operation

Operation parameter Parameter here Note
left x Not stated
right y Not stated
max_distance Not stated No limit; filter with st_distance afterwards.

Differences from the operation

  • Returns the index of the nearest feature in y for each feature of x; join with cbind(x, st_drop_geometry(y)[idx, ]).

Harvested by the r-packages harvester from engine version 1.1.3. Names can change when an engine is harvested again.