Merge Retained Data - Combined original data set with georeferenced or retained records.
Source:R/gators_merge.R
gators_merge.Rd
The gators_merge()
function combines two data sets with identical column names and returns a single data set.
Arguments
- df1
A data frame downloaded with
gators_download()
and prepared usingremove_missing()
.- df2
A data frame with the same columns as df1, but with observations generated through georeferencing or through data requests.
Details
Prior to combining a data set with georeferenced or retrieved data, please use the remove_missing()
function to limit duplicate records. This function requires no additional packages.
Examples
removed_missing <- remove_missing(data)
needs_geo <- need_to_georeference(data)
# fill in manually georeferenced data into needs_geo...
merged_data <- gators_merge(removed_missing, needs_geo)
needs_data <- needed_records(data)
# fill in missing information with a data request...
merged_data <- gators_merge(merged_data, needs_data)