defineAreas: Assigns area ID based on strata.

Description Usage Arguments Value References

View source: R/defineAreas.R

Description

Adds column ID to a dataframe that already has a column STRAT, and then assigns an area ID based on the strata number in STRAT.

Usage

1
defineAreas(dat, area)

Arguments

dat

A dataframe that includes the column STRAT, which has entries corresponding to the strata on the Scotian Shelf (e.g., values from 440 to 495).

area

Character string indicating the spatial scale for which to assign areas IDs. Options are: "strat", "nafo", "esswss", or "shelf".

Value

The function returns dat with an extra column: ID

References

Modified code from AC's ExtractIndicators/R/defineGroups.R.


dempseydanielle/SSdata documentation built on May 3, 2020, 5:09 p.m.