This function calculates species condition from a survdat data pull.
Methods derived from Laurel Smith (https://github.com/Laurels1/Condition/blob/master/R/RelConditionEPU.R)
Usage
species_condition_orig(data, LWparams, species.codes)
Arguments
- data
data table. NEFSC survey data generated by 'survdat::get_survdat_data(channel, getBio = T, getLengths = T)'
- LWparams
L-W parameters from Wigley et al. 2003 from NEesp2::LWparams
- species.codes
data table. Species codes and names from NEesp2::species.codes
Value
Returns R object condition
, a data frame of species condition by EPU with scale.