Learn R Programming

banR (version 0.2.2)

geocode_tbl: Geocode tbl

Description

Geocode tbl geocodes a whole data frame

Usage

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

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab