readMortalityDist: (ISBM/CYER) Import motality distribution CMZ (*.csv) files.

Description Usage Arguments Value Examples

Description

(ISBM/CYER) Import motality distribution CMZ (*.csv) files.

Usage

1
readMortalityDist(filenames, ...)

Arguments

filenames

A character vector of length one or more. The names of the *CMZ.csv files.

Value

A list comprising two data frames. The first data frame (data.mort.wide) has the same structure as found in the csv file. The second data frame (data.mort.long) is reshaped to a long format and the fishery column names are parsed into additional columns.

Examples

1
2
3
4
5
6
## Not run: 
mort.list <- readMortalityDist(mort.filepaths)
mort.df <- mort.list$data.mort.long
View(mort.list[mort.df$fishery.psc=="ISBM",])

## End(Not run)

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