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.24 or SS_writedat_3.30
(and potentially additional functions in the future). This setup allows those
functions to be cleaner (if somewhat redundant) than a single function that
attempts to do everything.
SS_writedat(
datlist,
outfile,
version = "3.30",
overwrite = FALSE,
faster = FALSE,
verbose = TRUE
)
List object created by SS_readdat()
(or by SS_readdat_3.24()
or SS_readdat_3.24()
)
Filename for where to write new data file.
SS version number. Currently only "3.24" or "3.30" are supported, either as character or numeric values (noting that numeric 3.30 = 3.3).
Should existing files be overwritten? Default=FALSE.
Speed up writing by writing length and age comps without aligning the columns (by using write.table instead of print.data.frame)
Should there be verbose output while running the file?
SS_writedat_3.24()
, SS_writedat_3.30()
,
SS_readdat()
,
SS_readstarter()
, SS_writestarter()
,
SS_readforecast()
, SS_writeforecast()