fdCBSfilterBySpByCell | R Documentation |
modify an output scenario based on binary species rasters to get a new scenario that supports a condition on species and cell charactristics
fdCBSfilterBySpByCell( cbsDir, scenario, suffixScenario, spAttrTable, spAttr, cellAttrTable, cellAttr, condition, NAfill = NULL, mc.cores = 1, useForeach = F, g = 10, verbose = T )
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. |
saves a cbs file
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
Cory Merow <cory.merow@gmail.com>, Pep Serra
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.