Let's start with an example scenario "D0-E1-F0-M0-R0-cod"
.
The single capital letters refer to case IDs. The numbers refer to the case
numbers. The last block of text (cod
) represents the stock ID (any
alphanumeric string of text will work) and is to help the user identify
different "stocks" (intended to represent different SS3 model setups).
The stock IDs should correspond to how the case files are named and the
case IDs should correspond to the cases described by the case_files
.
The case file names will correspond to the list values plus the stock ID.
For example list(D = c("index", "lcomp", "agecomp"))
combined with
the stock ID cod
means that the case D1
will refer to the
case files index-cod.txt, lcomp-cod.txt, agecomp-cod.txt
.
The case argument plain text files should have arguments in the first
column that should be passed on to functions. The names should match
exactly. The second column (delimited by a semicolon) should contain the
values to be passed to those arguments. Multiple words should be enclosed
in quotes.
You can use any simple R syntax to declare argument values. For example:
c(1, 2, 4)
, or seq(1, 100)
, or 1:100
, or
matrix()
, or NULL
. Character objects don't need to be quoted,
but can be if you'd like. However, be careful not to use the delimiter (set
up as a semicolon) anywhere else in the file besides to denote columns. You
can add comments after any #
symbol just like in R.
Internally, the functions evaluate in R any entries that have no
character values (e.g. 1:100
), or have an alpha-numeric character
followed by a (
. Anything that is character only or has character
mixed with numeric but doesn't have the regular expression
"[A-Za-z0-9]("
gets turned into a character argument. (NA
and
NULL
are special cases that are also passed on directly.)