calcCYER: (ISBM/CYER) Calculate CYER and its index.

Description Usage Arguments Value Examples

Description

(ISBM/CYER) Calculate CYER and its index.

Usage

1
calcCYER(mort.df, fishery.map, country = c("canada", "us"))

Arguments

mort.df

A data frame. The element named data.mort.long, which is in the output from readMortalityDist.

fishery.map

A data frame. Output from buildCMZfishery.

Value

A data frame with the estimates of catch year exploitation rate and index.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
data.path <- "../data/totalmortalityDistribution/qui_2-6"
mort.filenames <- list.files(data.path, pattern = ".csv$")
mort.filepaths <- paste(data.path, mort.filenames, sep="/")
mort.list <- readMortalityDist(mort.filepaths)
mort.df <- mort.list$data.mort.long
mort.df$year <- mort.df$CatchYear
fishery.map <- buildCMZfishery(mort.df = mort.df)
calcCYER(mort.df, fishery.map)

## End(Not run)

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