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
)
(character string)- path where to save the new Spc.dat file.
(character string)- name of the new Spc.dat file.
(logical)- Specify if the existing file should be overwritten.
The default value is overwrite = FALSE
.
(character string)- Object (list) containing the ex Spc.dat file - The list is
created using the readGMACSdat()
function.
(character string)- name of the stock of interest.
(character string)- name of the model currently considered (e.g., "model 22.A").
(character string)- Year of this assessment.
(character string)- the directory where the gmacsbase.TPL file you are using for the stock assessment is hold.
create a new .dat file.