region.reorg | R Documentation |
Turns columns with i.e., cz & cz_name to region.id/region.type format that is expected in a variety of places in code that I've been writing.
region.reorg(df, region.type)
df |
table to rename |
region.type |
A column in df containing region identifiers, with column itself indicating level or type of region. #' not-exported region.reorg |
i may delete here; similar fcn in geoseg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.