View source: R/SS_readstarter.R
SS_readstarter | R Documentation |
Read Stock Synthesis starter file as a list
SS_readstarter(file = "starter.ss", verbose = TRUE)
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. |
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.
Ian G. Taylor, Kathryn L. Doering, Kelli F. Johnson
Other read/write functions:
SS_read()
,
SS_readctl()
,
SS_readdat()
,
SS_readforecast()
,
SS_write()
,
SS_writectl()
,
SS_writedat()
,
SS_writeforecast()
,
SS_writestarter()
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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.