Check which points are spatial dataset outliers.
check_outliers_dataset(data, report = FALSE, mad_coef = 6, iqr_coef = 3)
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 |
iqr_coef | Coefficient to multiply the interquartile range (IQR) by in
order to determine the range of valid values. Default values is |
Problematic records or an errors report.
plot_outliers
check_outliers_species
check_onland
check_depth
# 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) # }