read_stkfile: Read in stk file of base period exploitation rates.

Description Usage Arguments Value Examples

Description

Read in stk file of base period exploitation rates.

Usage

1
read_stkfile(filename, baseperiodfishery.names)

Arguments

filename

A character vector of length 1. The stk file of base period exploitation rates.

baseperiodfishery.names

A character vector. Likely based on the file "48FisheryName.txt".

Value

A list comprising two elements. The first, named dat.meta.long is a data frame of data other than the ER values. This includes the initial cohort abundance (initcohortabun), the maturation rates (matrates), and the AEQ factor (aeqfactor). The second list element is dat.er.long, which is a data frame of the ER data.

Examples

1
2
3
4
5
6
7
8
## Not run: 
baseperiodfishery.names <- readLines(
   "../data/2015BPC_fpa_AABM_troll_spfi - 9-20-2016/48FisheryName.txt")
dat.stk <- read_stkfile(
  "../data/2015BPC_fpa_AABM_troll_spfi - 9-20-2016/2015BPC_PII_V1.5.STK",
   baseperiodfishery.names)

## End(Not run)

MichaelFolkes/ctctools documentation built on May 7, 2019, 4:56 p.m.