makecMSYdat: makecMSYdat generates a cMSY dataset out of other data files

View source: R/cMSY_funs.R

makecMSYdatR Documentation

makecMSYdat generates a cMSY dataset out of other data files

Description

makecMSYdat expects to find in the input data.frame or matrix, columns containing 'Year', and 'Total' (meaning total removals = catch + discards), and 'Resilience' being any of 'verylow', 'low', 'medium', or 'high'.

Usage

makecMSYdat(
  indat,
  spsname = "",
  yearcol = "Year",
  catchcol = "Catch",
  resil = "low"
)

Arguments

indat

the tier 4 datafile for one species

spsname

the name of the species to be analysed

yearcol

the column name of the year data

catchcol

the column namae of the total catch data

resil

the value of resilience for the species as a character of either "verylow", "low", "medium", or "high". Note the lower case, defaults to "low"

Value

a list containing a matrix of year and catch, and a list of the resilience and spsname

Examples

## Not run: 
print("read the csv file containing the general data into 'dat'")
print("then run  makecMSYdat(dat,'spsname')")

## End(Not run)

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.