geocode_df_cities: geocode df for cities

View source: R/geocode_utils.R

geocode_df_citiesR Documentation

geocode df for cities

Description

Similar to banR::geocode_tbl() specifically for cities but with improvement:

Usage

geocode_df_cities(.data, city_col)

Arguments

.data

a data.frame

city_col

name of the column that contains the city names

Details

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

Value

.data with additional columns named : result_name, result_cog, result_lat, result_lon, result_score


JMPivette/evavelo documentation built on April 8, 2023, 4:20 p.m.