Internal function used with editFeatures to apply edits to a sf object.
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.