remove_missing {gatoRs} | R Documentation |
Remove Missing Information - Prepare to merge a data frame with georeferenced and retrieved records
Description
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 |
remove.type |
Default equal to "both" indicating records identified with the |
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). |
Details
This function requires no additional packages.
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()
.
Examples
cleaned_data <- remove_missing(data)