addcntcat: addcntcat adds the years of experience by record to...

View source: R/candidate_functions.r

addcntcatR Documentation

addcntcat adds the years of experience by record to data.frame

Description

addcntcat adds the count of years of experience, and the total catch across years, for each diver, as recorded in the input catch-effort data.frame. Additions are made to the right-hand side of the input data.frame. The count of years and total catch for each diver will obviously change depending on which block, or collection of blocks, are selected. The value of this is that it facilitates the exploration of the influence of years of experience and total catch on everything else.

Usage

addcntcat(
  indat,
  diver = "diver",
  year = "year",
  catch = "catch",
  count = "count",
  totC = "totC"
)

Arguments

indat

the docket catch-effort data.frame of interest

diver

character string name of the active diver/vessel or whoever/ whatever is fishing each year, default='diver'

year

character string name of the year, default='year'

catch

character string name of the catch variable in the data.frame

count

character string name for the count variable to be added to the data.frame, default='count'

totC

character string name for the totalC variable to be added to the data.frame, default='totC'

Value

the same input data.frame with the addition of two columns

Examples

## Not run: 
  print("waiting on an integral data-set")

## End(Not run)

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