Read Stock Synthesis starter file as a list
Value
A list with one element for each line of input values.
List elements containing the name of the control and data file are
particularly helpful, i.e., ctlfile
and datfile
, respectively.
See also
Other read/write functions:
SS_read()
,
SS_readctl()
,
SS_readdat()
,
SS_readforecast()
,
SS_write()
,
SS_writectl()
,
SS_writedat()
,
SS_writeforecast()
,
SS_writestarter()
Examples
starter_list <- SS_readstarter(
system.file("extdata", "simple_small", "starter.ss",
package = "r4ss"
),
verbose = FALSE
)
# The following lines should be TRUE and demonstrate how you can know the
# names of the control and data file given information in the starter file.
starter_list[["ctlfile"]] == "simple_control.ss"
#> [1] FALSE
starter_list[["datfile"]] == "simple_data.ss"
#> [1] FALSE