#' Geocode a data frame
#'
#' @export
geocode <- function(variable) {
world <- spData::world %>% dplyr::select(iso_a2, geom)
return(variable %>% dplyr::inner_join(world, by = c(country_id = 'iso_a2')))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.