Remove Missing Information - Prepare to merge a data frame with georeferenced and retrieved records
Source:R/remove_missing.R
remove_missing.Rd
The remove_missing()
function identifies and removes records identified with the need_to_georeference()
and needed_records()
functions. This function should be utilized prior to merging georeferenced or retrieved records.
Usage
remove_missing(
df,
remove.type = "both",
info.withheld = "informationWithheld",
longitude = "longitude",
latitude = "latitude",
locality = "locality",
id = "ID"
)
Arguments
- df
A data frame downloaded with
gators_download()
.- remove.type
Default equal to "both" indicating records identified with the
need_to_georeference()
function andneeded_records()
function are removed from the data frame. If equal to "georeference" then only records identified by theneed_to_georeference()
function are removed. If equal to "withheld" then only records identified with theneeded_records()
function are removed.- info.withheld
Default = "informationWithheld". The name of the information withheld column in the data frame.
- longitude
Default = "longitude". The name of the longitude column in the data frame.
- latitude
Default = "latitude". The name of the latitude column in the data frame.
- locality
Default = "locality". The name of the locality column in the data frame.
- id
Default = "ID". The name of the id column in the data frame, which contains unique IDs defined from GBIF (keys) or iDigBio (UUID).
Value
A data frame with records containing missing information removed.
Information about the columns in the returned data frame can be found in the documentation for gators_download()
.