basis_clean | R Documentation |
The basis_clean()
function removes records based on basisOfRecord column.
basis_clean(df, basis.list = NA, basis.of.record = "basisOfRecord")
df |
Data frame of occurrence records returned from |
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. |
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.
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()
.
cleaned_data <- basis_clean(data, basis.list = c("Preserved Specimen","Physical specimen"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.