Learn R Programming

BeeBDC (version 1.2.0)

flagAbsent: 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")

Value

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

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"

Examples

Run this code
  # 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")

Run the code above in your browser using DataLab