SS_writeforecast: write forecast file

View source: R/SS_writeforecast.R

SS_writeforecastR Documentation

write forecast file

Description

write Stock Synthesis forecast file from list object in R which was probably created using SS_readforecast()

Usage

SS_writeforecast(
  mylist,
  dir = NULL,
  file = "forecast.ss",
  writeAll = FALSE,
  overwrite = FALSE,
  verbose = TRUE
)

Arguments

mylist

List object created by SS_readforecast().

dir

Directory for new forecast file. Default=NULL (working directory).

file

Filename for new forecast file. Default="forecast.ss".

writeAll

Should the function continue even if Forecast=0 (at which point SS stops reading, and remaining elements in list may not be available, depending on settings used in SS_readforecast)

overwrite

Should existing files be overwritten? Default=FALSE.

verbose

Should there be verbose output while running the file? Default=TRUE.

Author(s)

Ian Taylor

See Also

SS_readstarter(), SS_readforecast(), SS_readdat(), SS_writestarter(), SS_writedat()


r4ss documentation built on May 28, 2022, 1:11 a.m.