Learn R Programming

BeeBDC (version 1.2.0)

coordUncerFlagR: Flag occurrences with an uncertainty threshold

Description

To use this function, the user must choose a column, probably "coordinateUncertaintyInMeters" and a threshold above which occurrences will be flagged for geographic uncertainty.

Usage

coordUncerFlagR(
  data = NULL,
  uncerColumn = "coordinateUncertaintyInMeters",
  threshold = NULL
)

Value

The input data with a new column, .uncertaintyThreshold.

Arguments

data

A data frame or tibble. Occurrence records as input.

uncerColumn

Character. The column to flag uncertainty in.

threshold

Numeric. The uncertainty threshold. Values equal to, or greater than, this threshold will be flagged.

Examples

Run this code
# Run the function
beesRaw_out <- coordUncerFlagR(data = beesRaw,
                               uncerColumn = "coordinateUncertaintyInMeters",
                               threshold = 1000)
# View the output
table(beesRaw_out$.uncertaintyThreshold, useNA = "always")

Run the code above in your browser using DataLab