Skip to contents

Generate future recruitment timeseries via historical reasampling, (see `resample_recruits`) but set a specific time period of the projected recruitment to a different values. Can be used to specify a "crash" in recruitment, or a "spike" in recruitment depending on the `crash_value`.

Usage

recruits_crash(
  crash_start_year,
  crash_length,
  crash_value,
  hist_recruits,
  nyears,
  seed
)

Arguments

crash_length

number of years to have "crashed" recruitment

crash_value

recruitment during the "crash" period

hist_recruits

historical timeseries of recruitment (or deviates)

nyears

total number of years to resample

seed

random seed for reproducability

crash_start_years

projection year to start the recruitment crash