Internal function used with editFeatures to apply deletes to a sf object.
merge_delete(orig =NULL, deletes =NULL, by = c(id ="layerId"))
Arguments
orig: sf with the original or source data to which deletes should apply
deletes: sf with sf data to delete
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 deletes 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.