makecMSYdat | R Documentation |
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'.
makecMSYdat(
indat,
spsname = "",
yearcol = "Year",
catchcol = "Catch",
resil = "low"
)
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" |
a list containing a matrix of year and catch, and a list of the resilience and spsname
## Not run:
print("read the csv file containing the general data into 'dat'")
print("then run makecMSYdat(dat,'spsname')")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.