strat_prep | R Documentation |
Calculates the number of tows per strata and strata weight. Run before sub setting the data by species of interest to ensure all stations are accounted.
strat_prep(
surveyData,
areaPolygon = "NEFSC strata",
areaDescription = "STRATA",
filterByArea = "all",
filterBySeason = "all"
)
surveyData |
Data table. NEFSC survey data generated by |
areaPolygon |
sf object or character string. Default = "NEFSC strata". The default option uses the survey strata shapefile bundled with the package.
To use any other shapefile for stratification, the shapefile must be read in as an sf object and the |
areaDescription |
Character String. Column name from |
filterByArea |
Numeric vector. Set of areas to subset from the
|
filterBySeason |
Character string. Which seasons of the |
Returns a prepSurvey data object with added columns for the number of tows (ntows) and stratum weights (W.h).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.