R/update_ss3_selectivity.R

Defines functions update_ss3_selectivity

update_ss3_selectivity <- function(input_list) {
  input_list[["ctl"]][["age_selex_parms"]][, "dev_maxyr"] <- ifelse(
    input_list[["ctl"]][["age_selex_parms"]][, "dev_maxyr"] == 0,
    0,
    max(input_list[["dat"]][["agecomp"]][, "Yr"])
  )
  return(input_list[["ctl"]])
}
pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.