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

View source: R/cpuefuncs.r

fisheryR Documentation

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

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

fishery(
  indat,
  years = "year",
  catch = "catch",
  effort = "effort",
  cpue = "cpue"
)

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 "cpue"

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

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

## End(Not run)

haddonm/rforcpue documentation built on Oct. 12, 2024, 11:55 p.m.