Learn R Programming

r4ss (version 1.44.0)

SS_writewtatage: Write weight-at-age file

Description

Write Stock Synthesis weight-at-age file from R object that was probably created using SS_readwtatage()

Usage

SS_writewtatage(
  mylist,
  dir = NULL,
  file = "wtatage.ss",
  overwrite = FALSE,
  verbose = TRUE,
  warn = TRUE
)

Arguments

mylist

Object created by SS_readwtatage().

dir

A file path to the directory of interest. Typically used with file, an additional input argument, to specify input and output file paths. The default value is dir = NULL, which leads to using the current working directory, and thus, full file paths should not be specified for other arguments as they will be appended to dir.

file

Filename for new weight-at-age file, which will be appended to dir to create a full file path. Default="wtatage.ss".

overwrite

A logical value specifying if the existing file(s) should be overwritten. The default value is overwrite = FALSE.

verbose

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

warn

A logical value specifying if a warning should be generated if overwriting file. The default value is warn = TRUE.

See Also

SS_readwtatage()