
Extracts the lat and long for each address from authors_clean
Source:R/authors_georef.R
authors_georef.Rdauthors_georef This function takes the final author list from
refine_authors, and calculates the lat long of the city, country, and postal
code (for USA addresses) or city and country (for addresses outside the USA).
Arguments
- data
dataframe from
authors_refine()- address_column
name of column in quotes where the addresses are
- google_api
if
google_api = FALSEgeoreferencing is carried out with thetidygeocoderpackage (optiongeocode()withmethod = 'osm'). Ifgoogle_api = TRUE, then geocoding is done with the Google Maps API. Defaults toFALSE.
Details
The output is a list of three data.frames
addresses All info from 'refine_authors' plus new columns with
lat & long. It includes ALL addresses, including those that could not
be geocoded.
missing_addresses A data frame of the addresses that could
NOT be geocoded.
no_missing_addresses the addresses data frame with ONLY the
addresses that were geocoded.