get_nearest_feature_column: Load 2 sf objects, x and y and the fields you want to add...

Description Usage Arguments Value

View source: R/get_nearest_feature_column.R

Description

Accepts two sf objects x and y and appends the columns of the nearest feature in y to every feature in x. I use "fields" and "columns" interchangeably.

Usage

1
get_nearest_feature_column(x, y, col = "column_1")

Arguments

x

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

y

An sf object containing fields to be assigned to x

col

The column(s) to add from y to x. Default is "column_1"

Value

Returns the same sf object in x with the addition of the column(s) from y


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