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

Description Usage Arguments

Description

This function takes a data frame of all species records, estimates geographic and environmental ranges for each, and creates a table of each. It uses the AOO.computing function in the ConR package https://cran.r-project.org/web/packages/ConR/index.html It assumes that the input df is that returned by the check_spatial_outliers function

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
calc_1km_niches(
  coord_df,
  prj,
  country_shp,
  world_shp,
  kop_shp,
  species_list,
  env_vars,
  cell_size,
  save_run,
  data_path,
  save_data
)

Arguments

coord_df

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

world_shp

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

kop_shp

.Rds object. Shapefile of the worlds koppen zones (e.g. https://www.climond.org/Koppen.aspx)

species_list

Character string - List of species analysed, used to cut the dataframe down

env_vars

Character string - List of environmental variables analysed

cell_size

Numeric. Value indicating the grid size in decimal degrees used for estimating Area of Occupancy (see ?AOO.computing)

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 - do you want to save the data frame?

aus_df

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


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