View source: R/networksBetadiversity.R
calcTempBetaDiv.master | R Documentation |
this function loads and prepares networks to calculate temporal spp turnover (beta diversity) and saves the outputs. Beta diversity is calculated per pairs of pixels of the same location, but different scenarios (a baseline scenario and a change scenario). This function was designed to be parallelized. The user should provide one scenario file at a time and a vector of baseline files (which will be matched to the scenario - SDM stat. model match)
calcTempBetaDiv.master(
masterScen.file,
masterBL.files,
families = c("allTaxon", "bird", "mammal", "reptile", "amphibian"),
out.dir,
scen.dir,
toDo = "all",
method = "all"
)
masterScen.file |
one scenario pixelXspp matrix file path, which
can be made by |
masterBL.files |
a vectorlis of baseline pixelXspp matrix files, which
can be made by |
families |
character. determines for which families beta div will be calculated
(this subsets the species). Can be all, one or a combination of
|
out.dir |
is were beta-diversity tables will be saved (in a folder tree respecting scenario folders.) |
scen.dir |
is the "root" directory where "scenario networks" were stored |
toDo |
controls if beta-diversity hhas to be recalculated for 'all' scenarios or just 'missing' ones |
method |
passed to |
the output beta-diversity file path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.