prepare_species_data: Prepare species data

Description Usage Arguments Value

View source: R/prepare_species_data.R

Description

Prepare species data by creating presence and/or pseudoabsence datasets for modeling. In that process, first the NAs are removed, then presence points are thinned to remove points that are too close together (less than 1.5km when) modeling with ~1km pixel size. It is assumed that in wd the directory containing Geopackage file with species data is present.

Usage

1
prepare_species_data(species, species_column_name = "spec", mask, env_layers)

Arguments

species

(character), name used in project. For example: satmon for Satureja montana, aursax for Aurinia saxatilis etc.

species_column_name

(character), column name as in .gpkg file from where species data will be extracted. Default value is "spec"

mask

sf polygon object with specific areas from where pseudoabsences will be extracted

env_layers

(raster stack), environmental layers that is the result of running create_env_stack function

Value

Data table object


grgurev/sdmflowR documentation built on Feb. 26, 2021, 10:57 a.m.