Based on spawn year and species

weeklyStrata(
  start_date = NULL,
  end_date = NULL,
  strata_beg = "Mon",
  last_strata_min = 3
)

Arguments

start_date

character vector of date (YYYYMMDD) when query should start

end_date

character vector of date (YYYYMMDD) when query should end

strata_beg

3 letter code for the day of the week each weekly strata should begin on. Default value is 'Mon'.

last_strata_min

minimum length (in days) for the final strata. Default value is 3.

Author

Kevin See

Examples

weeklyStrata(2010:2012)
#> Warning: All formats failed to parse. No formats found.
#> Warning: All formats failed to parse. No formats found.
#> Error in if (endDate < startDate) stop("start_date comes after end_date"): the condition has length > 1