Example Performance Metric: Calculate the coefficient of variation of catch
Source:R/example_perf_metrics.R
get_catch_cv.RdExample performance metric that calculates the coefficient of variation (CV) of catch over a range of years in a Stock Synthesis data file. This function aggregates across fleets, so may not be appropriate for models with multiple fleets.
Examples
if (FALSE) { # \dontrun{
catch_cv <- get_catch_cv(datfile = "mod/dat.ss", yrs = c(20:50, 75:100))
catch_cv
} # }