Write a new Spc.dat file. This function is used to modify within R a pre-existent Spc.dat file.

writeGmacsdatfile(
  Dir = NULL,
  FileName = NULL,
  overwrite = FALSE,
  DatFile = NULL,
  stock = "",
  model_name = "",
  Ass_Year = "",
  DirTPL = NULL
)

Arguments

Dir

(character string)- path where to save the new Spc.dat file.

FileName

(character string)- name of the new Spc.dat file.

overwrite

(logical)- Specify if the existing file should be overwritten. The default value is overwrite = FALSE.

DatFile

(character string)- Object (list) containing the ex Spc.dat file - The list is created using the readGMACSdat() function.

stock

(character string)- name of the stock of interest.

model_name

(character string)- name of the model currently considered (e.g., "model 22.A").

Ass_Year

(character string)- Year of this assessment.

DirTPL

(character string)- the directory where the gmacsbase.TPL file you are using for the stock assessment is hold.

Value

create a new .dat file.

See also