View source: R/setup_areastrata.R
setup_areastrata | R Documentation |
Create a data frame with one row per stratification and stratification names based on which area they fall in. Often, species will be broke into several stocks along a latitudinal gradient as well as stratifications within each area. Where stratifications are based on latitude and depth. All three of these categories are accounted for here.
setup_areastrata(
area_lat = c(`CAN-US` = 49, Conception = 34.45, `US-MX` = 32),
strata_lat = nwfscDeltaGLM::strataLatitudes(),
strata_depth = nwfscDeltaGLM::strataDepths()
)
area_lat |
Latitudinal (decimal degree) breaks for each area, including breaks for the north and south boundaries. For example, a single area would have two values, the northern and southern borders. It is helpful if you name the vector like the default vector that has two areas separated at Point Conception. |
strata_lat |
Latitudinal (decimal degree) breaks for each strata within
areas defined by |
strata_depth |
Depth breaks that will be included for each strata by
area combination. Values are limited to those available in the
|
A data frame with one row per stratification and the following columns:
name: a combination of the area and depth for the given stratification,
area: the calculated area (todo: units here) for the stratification,
Depth_m.1: the minimum depth of the stratification,
Depth_m.2: the maximum depth of the stratification,
Latitude_dd.1: the southern latitude of the stratification, and
Latitude_dd.2: the northern latitude of the stratification.
Kelli F. Johnson
# Strata for lingcod in 2021
setup_areastrata(
area_lat = c("CAN-US" = 49.0, "40-10" = round(40 + 10/60, 6), "US-MX" = 32.0),
strata_lat = c(46.0, 34.5),
strata_depth = c(55, 183, 400)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.