Skip to contents

Kept or removed records of a filtering or thinning run

Usage

# S3 method for class 'env_thinning'
kept(x)

# S3 method for class 'env_thinning'
removed(x)

kept(x)

removed(x)

# S3 method for class 'occ_filter'
kept(x)

# S3 method for class 'occ_filter'
removed(x)

Arguments

x

An occ_filter object from filter_occurrences() or an env_thinning from thin_environment().

Value

A data.frame: the original columns plus the diagnostic columns added by the filtering (reason, climate, built_pct, ...) or the thinning (env_*, ax_*, bin, block, keep_reason).

Examples

occ <- data.frame(decimalLongitude = c(10.123, 10.123, 0),
                  decimalLatitude = c(46.123, 46.123, 0))
res <- filter_occurrences(occ, filter_settings(cc_tests = "zeros"),
                           verbose = FALSE)
#> Warning: [vect] guessed crs
kept(res)
#> [1] decimalLongitude  decimalLatitude   lat_decimals      lon_decimals     
#> [5] reason_overridden reason           
#> <0 rows> (or 0-length row.names)
removed(res)
#>   decimalLongitude decimalLatitude lat_decimals lon_decimals reason_overridden
#> 1           10.123          46.123            3            3              <NA>
#> 2           10.123          46.123            3            3              <NA>
#> 3            0.000           0.000            0            0              <NA>
#>                   reason
#> 1 small_isolated_cluster
#> 2              duplicate
#> 3        coarse_decimals