geocode_cities: geocode a data.frame based on city names

View source: R/geocode_cities.R

geocode_citiesR Documentation

geocode a data.frame based on city names

Description

This function will try to find the best match in case of mispelling. A warning message will be generated indicating the city that has been chosen in case of doubt. This function is much more permissive to mispelling errors than geocode_cities_cp()

Usage

geocode_cities(.data, city_col)

Arguments

.data

a dataframe that needs to be updated

city_col

column name containing the city name in .data This value will also be used to name the new columns.

Value

the input data.frame with 3 new columns with a name based on city_col (_lat, _long, _cog) In case of correction proposition, a new colmuns starting with proposition_ is also added


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