Draw `n` random samples, with replacement, from the
historical recruitment timeseries.
resample_recruitment(n, hist_rec, seed = NA)
Arguments
- n
number of samples to draw
- hist_rec
historical recruitment vector
- seed
a random seed (optional)
Value
`n` random samples from the historical
recruitment timeseries.
Examples
if (FALSE) { # \dontrun{
set.seed(1120)
n <- 100
hist.rec <- c(100, 200, 50, 100, 120)
resample_recruitment(n, hist.rec)
} # }