View source: R/recode_regions.R
add_region | R Documentation |
Uses get_regionkey- and recode-functions to provide a fast and simple way to add regions to data. Very pipe-friendly.
add_region(data, ..., from = NULL, year = NULL, offline = TRUE)
data |
data.frame |
... |
character(s), the region(s) to add. |
from |
character, variable in the data that is used to add regions to the data. Defaults to NULL, in which case function tries to guess the variable in the data. |
year, |
double, year of region classification. |
offline, |
logical, whether works offline with package data. Defaults to |
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.