yearprop: yearprop summarizes the properties of the year as a factor

View source: R/candidate_functions.r

yearpropR Documentation

yearprop summarizes the properties of the year as a factor

Description

yearprop summarizes the properties of the year as a factor, which is useful before conducting a cpue standardization. It also outputs a table of the properties of the input data.frame

Usage

yearprop(
  indat,
  rundir,
  runname,
  year = "year",
  catch = "catch",
  effort = "hours",
  cpue = "cpue"
)

Arguments

indat

the data.frame being analysed

rundir

the results directory into which all results for the runname are put

runname

the name of the particular analysis

year

the name of the year factor in the data.frame. default='year'

catch

the name of the catch factor in the data.frame. default='catch'

effort

the name of the effort factor in the data.frame. default='hours'

cpue

the name of the cpue factor in the data.frame. default='cpue'

Value

invisibly returns a matrix of year, records, catch, hours, and bias-corrected geometric mean cpue. Also adds a table to the rundir and resfile

Examples

print("need to wait on an internal data.frame")

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