factorprop: factorprop summarizes the properties of a potential factor

View source: R/candidate_functions.r

factorpropR Documentation

factorprop summarizes the properties of a potential factor

Description

factorprop summarizes the properties of a potential factor to be used in a statistical standardization of cpue data. It does this in terms of the number of records and catches by year, and how many years the factor involved reported catches. Thus if dealing with divers and vessels it provides catch by diver or vessel by year, plus number of records reported, and summarizes all of these inside a local website. The value of this is that outliers and uneven distributions of records can be easily identified and decisions made about data selection and perhaps amalgamation of levels within a factor.

Usage

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

Arguments

indat

the data.frame being used for the standardization

fact

the name of the factor being explored, a character string

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 a list of records by year, catch by year and a table with total records, actively reporting years, and total catch for each value of the factor

Examples

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

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