coord_clean_records: Clean occurrence data

coord_clean_recordsR Documentation

Clean occurrence data

Description

Takes a data frame of all taxa records, and flag records as institutional or spatial outliers. It uses the CoordinateCleaner package https://cran.r-project.org/web/packages/CoordinateCleaner/index.html. It assumes that the records data.frame is that returned by the combine_records_extract function

Usage

coord_clean_records(
  records,
  multi_source,
  occ_flag,
  site_flag,
  capitals,
  centroids,
  save_run,
  data_path,
  save_data
)

Arguments

records

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

capitals

Numeric. Remove records within an xkm radius of capital cites (see ?clean_coordinates)

centroids

Numeric. Remove records within an xkm radius around country centroids (see ?clean_coordinates)

save_run

Character string - run name to append to the data frame, useful for multiple runs.

data_path

Character string - The file path used for saving the data frame

save_data

Logical or character - do you want to save the data frame?


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