Adds a `quality_flag` column to an occurrence tibble. Requires that `geospatialKosher` and `taxonomicKosher` are logical — a condition guaranteed by `bdcr_occurrences()`.
Value
The same `tibble` with an additional `quality_flag` column. Possible values:
- `"ok"`
No issues detected.
- `"no_coords"`
Missing coordinates.
- `"geospatial_issue"`
`geospatialKosher == FALSE`.
- `"taxonomic_issue"`
`taxonomicKosher == FALSE`.
- `"old_record"`
Year before `min_year`.
Examples
if (FALSE) { # \dontrun{
df <- bdcr_occurrences("Panthera onca", rows = 50)
bdcr_quality_check(df)
} # }
