merge_edit: Merge 'sf' Edits

Description Usage Arguments

View source: R/merge.R

Description

Internal function used with editFeatures to apply edits to a sf object.

Usage

1
merge_edit(orig = NULL, edits = NULL, by = c(id = "layerId"))

Arguments

orig

sf with the original or source data to which deletes should apply

edits

sf with sf data to edit

by

named vector with the name of the vector representing the column in orig that we will use to match and the value of the vector representing the column in edits that we will use to match. The argument is intended to work like the *join functions in dplyr. Note, this function will only use the first name and first value of the vector for matching.


mapedit documentation built on Feb. 3, 2020, 1:07 a.m.