flagAbsent {BeeBDC}R Documentation

Flags occurrences that are marked as absent

Description

Flags occurrences that are "ABSENT" for the occurrenceStatus (or some other user-specified) column.

Usage

flagAbsent(data = NULL, PresAbs = "occurrenceStatus")

Arguments

data

A data frame or tibble. Occurrence records as input.

PresAbs

Character. The column in which the function will find "ABSENT" or "PRESENT" records. Default = "occurrenceStatus"

Value

The input data with a new column called ".occurrenceAbsent" where FALSE == "ABSENT" records.

Examples

  # Bring in the data
data(beesRaw)
  # Run the function
beesRaw_out <- flagAbsent(data = beesRaw,
PresAbs = "occurrenceStatus")
  # See the result
table(beesRaw_out$.occurrenceAbsent, useNA = "always")

[Package BeeBDC version 1.1.1 Index]