post_strat | R Documentation |
Assign survey data (points, lat and lon) to designated regions (polygons) from a shape file.
post_strat(surveyData, areaPolygon, areaDescription, na.keep = F)
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 |
na.keep |
Boolean. Logical value to indicate whether original strata names should be retained. |
Returns a surveyData
data.table with one additional column labeled
with the value of areaDescription
areaDescription |
The name of the region (found in |
Other survdat:
calc_stratified_mean()
,
calc_swept_area()
,
get_area()
,
get_length_weight()
,
get_survdat_clam_data()
,
get_survdat_data()
,
get_survdat_scallop_data()
,
strat_mean()
,
swept_area()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.