SS_readstarter: Read Stock Synthesis starter file as a list

View source: R/SS_readstarter.R

SS_readstarterR Documentation

Read Stock Synthesis starter file as a list

Description

Read Stock Synthesis starter file as a list

Usage

SS_readstarter(file = "starter.ss", verbose = TRUE)

Arguments

file

Filename either with full path or relative to working directory.

See the formal arguments for a possible default filename.

verbose

A logical value specifying if output should be printed to the screen.

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.

Author(s)

Ian G. Taylor, Kathryn L. Doering, Kelli F. Johnson

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"
starter_list[["datfile"]] == "simple_data.ss"

r4ss/r4ss documentation built on April 30, 2024, 4:42 a.m.