Flags occurrences that are "ABSENT" for the occurrenceStatus (or some other user-specified) column.
flagAbsent(data = NULL, PresAbs = "occurrenceStatus")
The input data with a new column called ".occurrenceAbsent" where FALSE == "ABSENT" records.
# Bring in the data
data(beesRaw)
# Run the function
beesRaw_out <- flagAbsent(data = beesRaw,
PresAbs = "occurrenceStatus")
#> \.occurrenceAbsent:
#> Flagged 8 absent records:
#> One column was added to the database.
# See the result
table(beesRaw_out$.occurrenceAbsent, useNA = "always")
#>
#> FALSE TRUE <NA>
#> 8 92 0