buildCMZfishery: (ISBM/CYER) Build a mapping table to define a fishery group's...

Description Usage Arguments Value Examples

Description

(ISBM/CYER) Build a mapping table to define a fishery group's country.

Usage

1
2
3
buildCMZfishery(mort.df, fishery.list = list(list(country = "canada",
  fishery.term = c("nbc", "cbc", "wcvi", "bc", "canada")), list(country =
  "us", fishery.term = c("seak", "falcon", "wac", "puget", "us"))))

Arguments

mort.df

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

fisheries.list

A list containing one or more lists. Each sub-list will have the elements country and fishery.term. The fishery.term is a character string to search for in the column mort.df$fisherygroup.

Value

A data frame.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data.path <- "../data/totalmortalityDistribution"
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
buildCMZfishery(mort.df=mort.df)

## End(Not run)

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