prep_independent_swd: Helper to prepare independent occurrences when using SWD...

View source: R/prepare_swd.R

prep_independent_swdR Documentation

Helper to prepare independent occurrences when using SWD format

Description

Helper to prepare independent occurrences when using SWD format

Usage

prep_independent_swd(
  occ,
  species,
  longitude,
  latitude,
  raster.layers,
  save = FALSE,
  name.occ
)

Arguments

occ

data.frame containing occurrence records of the species of interest. Mandatory columns are: species, longitude, and latitude. Other columns will be ignored.

species

(character) name of column containing species name.

longitude

(character) name of column containing longitude values.

latitude

(character) name of column containing latitude values.

raster.layers

RasterStack of predictor variables masked to the area where the model was calibrated.

save

(logical) whether or not to a write csv file containing independent occurrences prepared to be used in model evaluation. The file will contain additional columns with the values of the variables for each coordinate. Default = FALSE.

name.occ

(character) name to be used for the file with occurrence records to be written (e.g., "independent_occ").

Value

A data.frame with the prepared independent occurrences.


manubio13/ku.enm documentation built on Jan. 5, 2024, 5:55 a.m.