SS_writedat: write Stock Synthesis data file

View source: R/SS_writedat.R

SS_writedatR Documentation

write Stock Synthesis data file

Description

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.

Author(s)

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

See Also

Other read/write functions: SS_read(), SS_readctl(), SS_readdat(), SS_readforecast(), SS_readstarter(), SS_write(), SS_writectl(), SS_writeforecast(), SS_writestarter()


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