geocode_tbl: Geocode tbl

Description Usage Arguments Value Examples

View source: R/geocode_tbl.R

Description

Geocode tbl geocodes a whole data frame

Usage

1
geocode_tbl(tbl, adresse, code_insee = NULL, code_postal = NULL)

Arguments

tbl

a data frame or tibble

adresse

adress column

code_insee

official citycode column

code_postal

official postcode column

Value

an augmented data frame of class tbl with latitude, longitude, etc

Examples

1
2
3
4
5
6
7
8
table_test <- tibble::tibble(
x = c("39 quai Andre Citroen", "64 Allee de Bercy", "20 avenue de Segur"), 
y = c("75015", "75012", "75007"), 
z = rnorm(3)
)

geocode_tbl(tbl = table_test, adresse = x)
geocode_tbl(tbl = table_test, adresse = x, code_postal = y)

banR documentation built on July 8, 2020, 6:47 p.m.