Description Usage Arguments Value References
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
.
1 | defineAreas(dat, area)
|
dat |
A dataframe that includes the column |
area |
Character string indicating the spatial scale for which to assign
areas IDs. Options are: |
The function returns dat
with an extra column: ID
Modified code from AC's ExtractIndicators/R/defineGroups.R.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.