The basis_clean()
function removes records based on basisOfRecord column.
Arguments
- df
Data frame of occurrence records returned from
gators_download()
.- basis.list
A list of basis to keep. If a list is not supplied, the filter will be interactive and users must respond to the function.
- basis.of.record
Default = "basisOfRecord". The name of the basis of record column in the data frame.
Value
Returns a data frame with records of desired record basis.
Information about the columns in the returned data frame can be found in the documentation for gators_download()
.
Details
With the interactive method, the function will print all unique basisOfRecord values in the current data set and then ask the user to respond in the console to prompts regarding which records, if any, should be removed based on their basisOfRecord. This function requires no additional packages.
Examples
cleaned_data <- basis_clean(data, basis.list = c("Preserved Specimen","Physical specimen"))