Install the globaltoolbox package from github:
devtools::install_github("HopkinsIDD/globaltoolbox")
To use globaltoolbox, there are three steps:
Before loading the database, please create it with the create_database
function.
globaltoolbox provides a load_gadm
function, which takes the ISO 3166-1 alpha 3 code of a country. This will download all locations from GADM and add them to the database.
globaltoolbox::load_gadm(countries = c('MWI','TZA'))
globaltoolbox provides a telescoping_standardize
function, which takes your best guess at the name of a location, and returns the standardized name (if it can find it).Then you will need to build a database of countries using their ISO 3166 alpha-3 codes:
Once you have a database, you'll be able to look up location names
globaltoolbox::telescoping_standardize(c("TZA::Balkh"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.