coord_clean_records: This function takes a data frame of all species records, and...

Description Usage Arguments Value

Description

This function takes a data frame of all species 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

1
2
3
4
5
6
7
8
coord_clean_records(
  records,
  capitals,
  centroids,
  save_run,
  data_path,
  save_data
)

Arguments

records

Data.frame. DF of all species 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?

Value

Data.frame of all urban records, with global enviro conditions for each record location (i.e. lat/lon)


HMB3/sdmgen documentation built on April 16, 2021, 7:29 p.m.