Skip to contents

This function adds the iso3 code to a data frame, using the country synonyms file to match on country.

Usage

add_iso3(data)

Arguments

data

A data frame. Required to have a column labeled country.

Value

A data frame with iso3 code.

Examples


data.frame(country = c("DRC", "Congo", "Malawi"), value = 1) %>%
add_iso3()
#> Error: `path` does not exist: ‘C:/Users//Gavi/Measurement, Evaluation and Learning - Documents/CPMM/Datasets/Country Groupings/synonyms/country_synonyms.xlsx’