Learn R Programming

gatoRs (version 1.0.0)

process_flagged: Locality Cleaning - Find possibly problematic occurrence records

Description

The process_flagged() function allows you to find and map possible problematic points and manually inspect and remove these points, if desired. When running the function interactively you can hover over a point to see the record's scientific name, and click on a point to see the record's coordinates.

Usage

process_flagged(
  df,
  interactive = TRUE,
  latitude = "latitude",
  longitude = "longitude",
  scientific.name = "scientificName"
)

Value

Return cleaned data frame.

Arguments

df

Data frame of occurrence records returned from gators_download().

interactive

Default = TRUE. The interactive option allows for a visual display of possible problematic points and the ability to manually remove these points. Setting interactive = FALSE will automatically remove these points from the data frame.

latitude

Default = "latitude". The name of the latitude column in the data frame.

longitude

Default = "longitude". The name of the longitude column in the data frame.

scientific.name

Default = "scientificName". The name of the scientific name column in the data frame.

Details

This function requires packages CoordinateCleaner, leaflet, and magrittr. This function requires interactive user input.

Examples

Run this code
# \donttest{
cleaned_data <- process_flagged(data, interactive = FALSE)
# }

Run the code above in your browser using DataLab