check_spatial_outliers: Check Spatial Outliers

check_spatial_outliersR Documentation

Check Spatial Outliers

Description

This function takes a data frame of all taxa records, flags records as spatial outliers (T/F for each record in the df), and saves images of the checks for each. Manual cleaning of spatial outliers is very tedious, but automated cleaning makes mistakes, so checking is handy It uses the CoordinateCleaner package https://cran.r-project.org/web/packages/CoordinateCleaner/index.html. It assumes that the input dfs are those returned by the coord_clean_records function

Usage

check_spatial_outliers(
  occ_df,
  multi_source,
  site_flag,
  occ_flag,
  site_records,
  land_shp,
  clean_path,
  plot_points,
  record_limit,
  spatial_mult,
  prj
)

Arguments

multi_source

Numeric - use multiple sources?

land_shp

R object. Shapefile of the worlds land (e.g. https://www.naturalearthdata.com/downloads/10m-physical-vectors/10m-land/)

clean_path

Character string - The file path used for saving the checks

record_limit

Numeric - limit for records

spatial_mult

Numeric. The multiplier of the interquartile range (method == 'quantile', see ?cc_outl)

all_df

Data.frame. DF of all taxa records returned by the coord_clean_records function

site_df

Data.frame of site records (only used if you have site data, e.g. I-naturalist)


HMB3/nenswniche documentation built on Jan. 31, 2023, 11:46 p.m.