check_outliers_dataset: Check which points are spatial dataset outliers.

Description Usage Arguments Value See Also Examples

View source: R/check_outliers.R

Description

Check which points are spatial dataset outliers.

Usage

1
2
3
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

1
2
3
4
5
6
7
8
9
## 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)

## End(Not run)

sharksmhi/tryout documentation built on Dec. 27, 2019, 5:34 a.m.