bbmsy2catg: Convert B/BMSY to categorical status

View source: R/bbmsy2catg.R

bbmsy2catgR Documentation

Convert B/BMSY to categorical status

Description

Converts B/BMSY estimates to categorical statuses (e.g., underexploited, fully exploited, or overexploited).

Usage

bbmsy2catg(bbmsy, breaks = c(0.5, 1.5), catgs = c("over", "fully", "under"))

Arguments

bbmsy

A vector, matrix, or dataframe of B/BMSY estimates.

breaks

A vector of B/BMSY thresholds used to delineate status categories, listed in order of ascending value (e.g., 0.2, 0.5, 1.5). Default is 0.5 and 1.5 where B/BMSY < 0.5 = overexploited, 0.5 < B/BMSY < 1.5 = fully exploited, and B/BMSY > 1.5 = underexploited.

catgs

A vector of names for the status categories, listed in order of descending depletion (e.g, default is over, fully, under).

Value

A vector, matrix, or dataframe of status categories.

Examples

bbmsy <- select(preds, bbmsy,  mprm, comsir, sscom, cmsy13, cmsy17, zbrt, ocom, super1)
status <- bbmsy2catg(bbmsy)

cfree14/datalimited2 documentation built on Aug. 21, 2023, 2:26 p.m.