calc_enviro_niches: Calculate niches

calc_enviro_nichesR Documentation

Calculate niches

Description

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

calc_enviro_niches(
  coord_df,
  prj,
  country_shp,
  world_shp,
  kop_shp,
  taxa_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)

taxa_list

Character string - List of taxa 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 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.