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"]])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.