ps_nearest_feature: Nearest Feature

View source: R/nearest.R

ps_nearest_featureR Documentation

Nearest Feature

Description

Each row in object x is bound with the closest feature in object y. Uses sf::st_nearest_feature.

Usage

ps_nearest_feature(x, y, dist_col = NULL, ...)

Arguments

x

An sf object.

y

An sf object.

dist_col

A string indicating the name of the column to save the distance in.

...

Not used

Details

sf objects have their sf (active geometry) column renamed to geometry.


poissonconsulting/poisspatial documentation built on Nov. 9, 2023, 10:09 a.m.