makeAndSaveMasterScen: MAKE AND SAVE SCENARIO MASTER MATRICES (SPP X PIXEL MATRICES)...

makeAndSaveMasterScenR Documentation

MAKE AND SAVE SCENARIO MASTER MATRICES (SPP X PIXEL MATRICES) FUNCTION compiles all scenario networks into a sparse matrix and saves it to an .rds file

Description

MAKE AND SAVE SCENARIO MASTER MATRICES (SPP X PIXEL MATRICES) FUNCTION compiles all scenario networks into a sparse matrix and saves it to an .rds file

Usage

makeAndSaveMasterScen(
  x,
  returnMaster = FALSE,
  dietcat,
  redo = FALSE,
  save = TRUE
)

Arguments

x

is the .RData file containing the list of networks.

returnMaster

controls whether the function returns the master matrix or not. Defaults to FALSE and returns the saved file path

dietcat

diet categories (i.e., lowest trophic level nodes that are ubiquitous across all networks)

redo

controls whether masters will be recalculated and re-saved in case their saved files already exist

save

controls saving


CeresBarros/ToolsCB documentation built on Aug. 23, 2024, 4:22 p.m.