addCountryName | R Documentation |
Add additional information (metadata) to a data frame containing country information.
addCountryName(df, ct.x = "CT", ct.y = "ACODE", ct.name = "NAME", comptype=FALSE)
addCountryISO3(df, ct.x = "CT", ct.y = "ACODE", ct.iso3 = "ISO3", comptype=FALSE)
df |
A data frame containing country information. Countries are identified by a country code, e.g. UN country code |
ct.x |
Country code field name in the data frame - defaults to |
ct.y |
Country code field name in the metadata data frame |
ct.name |
Country name field name in the metadata data frame |
ct.iso3 |
Country ISO3 code field name in the metadata data frame |
comptype |
Wheather to include the component type (M=country or A=aggregate (country group)) - defaults to |
A data frame with the requested metadata added.
Valentin Todorov valentin.todorov@chello.at
UNIDO (2010), Industrial Statistics: Guidelines and Methodology.
data("graphdata")
mvax <- get.50x51()
head(addCountryName(mvax))
head(addCountryISO3(mvax))
head(addCountryISO3(mvax, comptype=TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.