View source: R/geocode_utils.R
geocode_df_cities | R Documentation |
Similar to banR::geocode_tbl() specifically for cities but with improvement:
geocode_df_cities(.data, city_col)
.data |
a data.frame |
city_col |
name of the column that contains the city names |
Size of the request is reduced by avoiding asking several times the same city. NA returns NA ansd not cities starting with "na" Messages are not displayed when there is no error. input.data is not altered even if contains special characters. Column order is also preserved
.data with additional columns named : result_name, result_cog, result_lat, result_lon, result_score
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.