View source: R/SS_readctl_3.24.R
SS_readctl_3.24 | R Documentation |
Read Stock Synthesis (version 3.24) control file into list object in R. This function comes with its wrapper function SS_readctl that calls SS_readctl_3.24 (this function) or SS_readctl_3.30 (to be available in future).
SS_readctl_3.24( file, verbose = FALSE, echoall = lifecycle::deprecated(), version = lifecycle::deprecated(), use_datlist = TRUE, datlist = "data.ss_new", nseas = NULL, N_areas = NULL, Nages = NULL, Ngenders = lifecycle::deprecated(), Nsexes = NULL, Npopbins = NA, Nfleet = NULL, Nsurveys = NULL, Do_AgeKey = NULL, N_tag_groups = NULL, N_CPUE_obs = NULL, ptype = FALSE )
file |
Filename either with full path or relative to working directory. See the formal arguments for a possible default filename. |
verbose |
Should there be verbose output while running the file? Defaults to FALSE. |
echoall |
Deprecated. Debugging tool (not fully implemented) of echoing blocks of values as it is being read. |
version |
Deprecated. 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). |
use_datlist |
LOGICAL if TRUE, use datlist to derive parameters which can not be determined from control file. Defaults to TRUE |
datlist |
list or character. if list : produced from SS_writedat or character : file name of dat file. |
nseas |
number of seasons in the model. This information is not
explicitly available in control file and used only if |
N_areas |
number of spatial areas in the model. Default = 1. This information is not
explicitly available in control file and used only if if |
Nages |
oldest age in the model. This information is also not
explicitly available in control file and used only if |
Ngenders |
Deprecated. Number of sexes in the model. This information is also not
explicitly available in control file and used only if |
Nsexes |
number of sexes in the model. This information is also not
explicitly available in control file and used only if |
Npopbins |
number of population bins in the model. This information is also not
explicitly available in control file and this information is only required if length based
maturity vector is directly supplied (Maturity option of 6). and used only
if |
Nfleet |
number of fisheries in the model. This information is also not explicitly available in control file |
Nsurveys |
number of survey fleets in the model. This information is also not explicitly available in control file |
Do_AgeKey |
Flag to indicate if 7 additional ageing error parameters to
be read set 1 (but in fact any non zero numeric in R) or TRUE to enable to
read them 0 or FALSE to disable them. This information is not
explicitly available in control file and used only if |
N_tag_groups |
number of tag release group. Default =NA. This information
is not explicitly available control file and used only if
|
N_CPUE_obs |
numeric vector of length=Nfleet+Nsurveys containing number of data points of each CPUE time series |
ptype |
include a column in the output indicating parameter type? (Can be useful, but causes problems for SS_writectl.) Defaults to FALSE. |
Yukio Takeuchi, Neil Klaer, Iago Mosqueira, and Kathryn Doering
SS_readctl()
, SS_readdat()
SS_readdat_3.24()
,SS_readdat_3.30()
SS_readstarter()
, SS_readforecast()
,
SS_writestarter()
,
SS_writeforecast()
, SS_writedat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.