View source: R/add_area_names.R
add_area_names | R Documentation |
A function to add columns with area names to a data frame where reporter or partner columns exist.
add_area_names(data, code_class = NULL, area_columns = c("reporter", "partner"))
data |
A data frame where reporter or partner columns exists. |
code_class |
A character string indicating classification of area codes: "fao", "m49" or "geonom". |
area_columns |
A character vector indicating names of columns with area codes. By default c("reporter", "partner"). |
Original data frame with added columns with name "name" (one column) or suffix "_name" (several columns).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.