fdCBSfilterBySpByCell: cbs scenario filtering

View source: R/fdCBSfilter.R

fdCBSfilterBySpByCellR Documentation

cbs scenario filtering

Description

modify an output scenario based on binary species rasters to get a new scenario that supports a condition on species and cell charactristics

Usage

fdCBSfilterBySpByCell(
  cbsDir,
  scenario,
  suffixScenario,
  spAttrTable,
  spAttr,
  cellAttrTable,
  cellAttr,
  condition,
  NAfill = NULL,
  mc.cores = 1,
  useForeach = F,
  g = 10,
  verbose = T
)

Arguments

cbsDir

directory of cell by species matrix

scenario

name of the target scenario to modify

suffixScenario

suffix to be added to scenario for the output (the modified cbs)

spAttrTable

species attribute table

spAttr

character. The name of the field with the species attribute of interest

cellAttrTable

site (cell) attribute table

cellAttr

character. The name of the field with the species attribute of interest

condition

character. Logical condition to be used to compare spAttr to cellAttr

NAfill

numeric or NULL. Should NA in cellAttr or spAttr be filled with a number

mc.cores

numeric. Number of cores to be used.

g

numeric. Number of species chunks to process the data. Higher numbers imply less RAM utilization. Default to 10.

Value

saves a cbs file

Note

Mask cbs by a condition involving species characteristics and cell characteristcis. Example when you have a species that can't live near cities: input a species with a city tolorance and a table with cell urbanized

Author(s)

Cory Merow <cory.merow@gmail.com>, Pep Serra


andrepazv/changeRangeR documentation built on May 7, 2022, 3:38 p.m.