fishery: fishery - generates vectors of year, catch, effort, and cpue

Description Usage Arguments Value Examples

View source: R/cpuefuncs.r

Description

fishery - generates vectors of year, catch, effort, and cpue This permits a summary of the basic fishery characteristics within a data.frame or matrix. It requires the columns to be labelled.

Usage

1
fishery(indat, years = "Year", catch = "catch", effort = "effort", cpue = "CE")

Arguments

indat

the input data.frame or matrix

years

the name of the year factor; defaults to "Year"

catch

the name of the catch variable; defaults to "catch"

effort

the name of effort variable; defaults to "effort"

cpue

the name of the cpue variable; defaults to "CE"

Value

a matrix with columns Year, Catch, Effort, Bias Corrected geometric mean CPUE, the naive geometric means, the arithemtic mean CPUE, and the number of records

Examples

1
2
3
4
5
## Not run: 
data(sps)
fishery(sps,years="Year",catch="catch_kg",effort="Effort",cpue="CE")

## End(Not run)

haddonm/r4cpue documentation built on May 11, 2020, 1:31 a.m.