Check which points are spatial dataset outliers.

check_outliers_dataset(data, report = FALSE, mad_coef = 6, iqr_coef =

  3)

Arguments

data

The data frame with decimalLongitude and decimalLatitude columns.

report

If TRUE, errors are returned instead of records.

mad_coef

Coefficient to multiply the median absolute deviation (MAD) by in order to determine the range of valid values. Default is 6.

iqr_coef

Coefficient to multiply the interquartile range (IQR) by in order to determine the range of valid values. Default values is 3.

Value

Problematic records or an errors report.

See also

plot_outliers check_outliers_species check_onland check_depth

Examples

# NOT RUN {
ok <- check_outliers_dataset(abra, report = FALSE)
print(nrow(ok))
r <- check_outliers_dataset(abra, report = TRUE, mad_coef = 3, iqr_coef = 1.5)
print(r)
plot_map_leaflet(abra[r$row,], popup = "id")
plot_outliers(r)
# }