Calculate reference value point

calculate_reference_point(dat, reference_name, lbs = FALSE)

Arguments

dat

Data frame or list. A tibble or named list of tibbles (input as list()) returned from convert_output.

If inputting a list of tibbles, the first tibble's reference point defined in ref_line is used to plot a reference line or calculate relative spawning biomass.

reference_name

String. Name of the reference point (e.g. "spawning biomass msy")

lbs

Logical. TRUE/FALSE; indicate whether to convert the y-axis values from kilograms to pounds. The default units match the default in the unit_label argument - 'mt'.

Default: FALSE

Value

the value of the reference point name found in the dat file.