name_2_rgn | R Documentation |
Convert country names to ohi region ids.
name_2_rgn(
df_in,
fld_name = "country",
flds_unique = NULL,
keep_fld_name = TRUE
)
df_in |
dataset |
fld_name |
field name of the region from the dataset |
flds_unique |
unique identifying fields for the dataset, e.g., c("rgn_name", "year") |
keep_fld_name |
keep original name |
This function translates name to region id with a lookup.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.