A convenience function that wraps base::expand.grid() to generate all combinations of survey design parameters and adds a unique survey number to each row.

expand_surveys(
  set_den = c(0.5, 1, 2, 5, 10)/1000,
  lengths_cap = c(5, 10, 20, 50, 100, 500, 1000),
  ages_cap = c(2, 5, 10, 20, 50)
)

Arguments

set_den

A vector of set densities (sets per grid unit squared).

lengths_cap

A vector of maximum numbers of lengths measured per set.

ages_cap

A vector of maximum numbers of otoliths to collect per length group per division per year.

Value

A data.frame containing all combinations of the supplied vectors, with an added survey column identifying each combination.