find_nearest: Load 2 sf objects, x and y

Description Usage Arguments Value

View source: R/find_nearest.R

Description

Accepts two sf objects x and y and determines the nearest feature in y for every feature in x.

Usage

1
find_nearest(x, y, y.name = "y")

Arguments

x

An sf object containing the features for which you want find the nearest features in y

y

An sf object containing features to be assigned to x

y.name

Characters prepended to the y features in the returned datatable

Value

Returns a dataframe containing all rows from x with the corresponding nearest feature from y. A column representing the distance between the features is also included. Note that this object contains no geometry.


tayoso2/sfXtra documentation built on Dec. 23, 2021, 7:50 a.m.