ss_compare: ss_compare custom wrapper to loop through nested...

Description Usage Arguments

View source: R/ss_compare.R

Description

ss_compare custom wrapper to loop through nested operating/estimation models and plot using r4ss

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
ss_compare(
  rootdir,
  subplots = 1:20,
  plotloc = NA,
  pattern = "Rep",
  llabels = c(paste0("OMR", 1:2), paste0("EMR", 1:2)),
  likeCSV = T,
  likeLabel = c("Surv_like", "SizeFreq_like:_2"),
  lambdaLabel = c("Surv_lambda", "SizeFreq_lambda:_2"),
  fishery = "Deep7",
  fleetIdx = c(2, 3),
  dolegend = T
)

Arguments

rootdir

master location of all models and (optional) replicates; will search for Report.sso files therein

pattern

a string which identifies the first-order folders, e.g "EM" "OM" – applicable to grep().

llabels

logical. If T, will write a CSV with results.

subpattern

can be NA; a secondary string by which models will be grouped, e.g. "Replicate"


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