authors_georef: Extracts the lat and long for each address from authors_clean

View source: R/authors_georef.R

authors_georefR Documentation

Extracts the lat and long for each address from authors_clean

Description

authors_georef This function takes the final author list from refine_authors, and calculates the lat long of the addresses. It does this by feeding the addresses into data science toolkit. In order to maximize effectiveness and mitigate errors in parsing addresses We run this multiple times creating addresses in different ways in hopes that the google georeferencing API can recognize an address 1st. University, city, zipcode, country 2nd. City, zipcode, country 3rd. city, country 4th. University, country

Usage

authors_georef(data, address_column = "address")

Arguments

data

dataframe from authors_refine()

address_column

name of column in quotes where the addresses are

Details

The output is a list with three data.frames addresses is a data frame with all information from refine_authors plus new location columns and calculated lat longs. missing addresses is a data frame with all addresses could not be geocoded addresses is a data frame like addresses except the missing addresses are gone.

Examples


## Not run: 
BITR_georef_df <- authors_georef(BITR_refined, address_column='address')

## End(Not run)

embruna/refsplitr documentation built on Aug. 16, 2024, 2:38 a.m.