Skip to contents

Write Stock Synthesis data file from list object in R which was probably created using SS_readdat(). This function is a wrapper which calls either SS_writedat_3.30()(previously also SS_writedat_3.24(), but that function has been deprecated).

Usage

SS_writedat(
  datlist,
  outfile,
  version = "3.30",
  overwrite = FALSE,
  faster = lifecycle::deprecated(),
  verbose = TRUE
)

Arguments

datlist

List object created by SS_readdat() (or by SS_readdat_3.24() or SS_readdat_3.24())

outfile

Filename for where to write new data file.

version

SS version number. Currently "3.24" or "3.30" are supported, either as character or numeric values (noting that numeric 3.30 = 3.3). version = NULL is no longer the default or an allowed entry. The default is version = "3.30".

overwrite

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

faster

Deprecated. Speed up writing by writing length and age comps without aligning the columns (by using write.table instead of print.data.frame)

verbose

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

See also

Author

Ian G. Taylor, Yukio Takeuchi, Gwladys I. Lambert