Learn R Programming

r4ss (version 1.36.1)

SS_readctl_3.30: read control file from SS version 3.30

Description

Read Stock Synthesis (version 3.30) control file into list object in R. This function comes with its wrapper function SS_readctl that calls SS_readctl_3.24 or SS_readctl_3.30 (this function).

Usage

SS_readctl_3.30(file, verbose = TRUE, echoall = FALSE,
  version = "3.30", nseas = 4, N_areas = 1, Nages = 20,
  Ngenders = 1, Npopbins = NA, Nfleet = 2, Nsurveys = 2,
  Do_AgeKey = FALSE, N_tag_groups = NA, N_CPUE_obs = c(0, 0, 9, 12),
  use_datlist = FALSE, datlist = NULL)

Arguments

file

Filename either with full path or relative to working directory.

verbose

Should there be verbose output while running the file? Default=TRUE.

echoall

Debugging tool (not fully implemented) of echoing blocks of data as it is being read.

version

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).

nseas

number of seasons in the model. This information is not explicitly available in control file

N_areas

number of spatial areas in the model. Default = 1. This information is also not explicitly available in control file

Nages

oldest age in the model. This information is also not explicitly available in control file

Ngenders

number of genders in the model. This information is also not explicitly available in control file

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 not yet tested

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 (default) to disable them. This information is not explicitly available in control file, too.

N_tag_groups

number of tag release group. Default =NA. This information is not explicitly available control file. This information is only required if custom tag parameters is enabled (TG_custom=1)

N_CPUE_obs

numeric vector of length=Nfleet+Nsurveys containing number of data points of each CPUE time series

use_datlist

LOGICAL if TRUE, use datlist to derive parameters which can not be determined from control file

datlist

list or character. If list, should be a list produced from SS_writedat. If character, should be the file name of an SS data file.

See Also

SS_readctl, SS_readdat SS_readdat_3.24,SS_readdat_3.30 SS_readctl_3.24, SS_readstarter, SS_readforecast, SS_writestarter, SS_writeforecast, SS_writedat