Get latest data per country
character of length 1 with the indicator code
character vector with country names to highlight
first year to download data
last year to download data
subset of countries to download data from. Default to "all". This argument is passed as is to WDI::WDI and hence, requires 'ISO-2 character codes, e.g. "BR", "US", "CA"'.
character vector to filter the data only to specific regions
character vector to filter the data only to specific income groups
data.frame with columns country, year, ind_1, region, income, highlight_ind_1. highlight_ind_1 = NA, except for highlight countries in which case, it takes the value of ind_1