makeDecTable: makeDecTable

Description Usage Arguments

View source: R/makeDecTable.R

Description

makeDecTable given a directory or set of directories, will stitch together info for decision table of 3x3 dimensions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
makeDecTable(
  rootdir,
  state_names = c("low", "base", "high"),
  catch_names = c("constant", "ABC", "upper"),
  years,
  baseCatch,
  row1Catch,
  row3Catch,
  round = T,
  writeTable = F,
  writeloc = getwd()
)

Arguments

rootdir

a master folder with all nine executed models.

state_names

three names referring to the states of nature, which must match names of the directories. defaults to low/base/high

catch_names

three names referring to the catch scenarios, which must match names of the directories. defaults to constant/ABC/upper

years

a vector of years for which you'd like output

baseCatch

a vector of catch values used for the base case model(s) (center row) – must match length(years)

row1Catch

a vector of catch values used for the first row model(s) (typically constant or lower stream)

row3Catch

a vector of catch values used for the first row model(s) (typically constant or lower stream)

round

logical, defaults to TRUE

writeTable

logical, defaults to FALSE

writeloc

if writeTable == T, directory to write output


mkapur/kaputils documentation built on Nov. 14, 2021, 3:23 a.m.