Write a new Spc.ctl file. This function is used to modify (within R) a pre-existent Spc.ctl file.
writeGmacsctlfile(
Dir = NULL,
FileName = NULL,
CtlFile = NULL,
DatFile = NULL,
stock = "",
model_name = "",
Ass_Year = "",
nsex = NULL,
nmature = NULL,
nclass = NULL,
Start_Y = NULL,
End_Y = NULL,
nyrRetro = NULL,
DirTPL = NULL,
Ver_number = NULL
)
(character string)- path where to save the new Spc.ctl file
(character string)- name of the new Spc.ctl file
(character string)- Object (list) containing the ex Spc.ctl file - The list is
created using the readGMACSctl()
function.
(list; optional)- Object containing the .dat file - This can either be the output
of the readGMACSdat()
function. If DatFile
is provided, then you don't need to provide
the following: nsex; Start_Y; End_Y
(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
(integer; optional)- Number of sexes considered in the model. This is required if you
don't provide the DatFile
.
(integer; optional)- Number of maturity type(s) considered in the model.
This is required if you don't provide the DatFile
.
(integer; optional)- Number of size class considered in the model.
(integer)- Number of year for the retrospective analysis.
(character string)- the directory where the gmacsbase.TPL file you are using for the stock assessment is hold.
(character)- The version of Gmacs. This is used only when developing new code versions of Gmacs.
(integer; optional)- First and last year of the assessment period.
This is required if you don't provide the DatFile
.
create a new .ctl file.