Skip to contents

Shows whether chosen records were kept or which test removed them, with their diagnostic values. Useful to check records you know well.

Usage

record_fate(x, ids)

Arguments

x

An occ_filter object.

ids

Record IDs (values of the id column, GBIF gbifID).

Value

A data.frame with the id, fate (KEPT or the reason) and the diagnostic columns; IDs not found are reported in a message (they may have been merged as duplicates).

Examples

occ <- data.frame(gbifID = c("1", "2"), decimalLongitude = c(10.123, 0),
                  decimalLatitude = c(46.123, 0))
record_fate(filter_occurrences(occ, filter_settings(cc_tests = "zeros"),
                           verbose = FALSE), c("1", "2", "9"))
#> Warning: [vect] guessed crs
#> Not found: 9
#>   id                   fate reason_overridden
#> 1  1 small_isolated_cluster              <NA>
#> 2  2        coarse_decimals              <NA>