ComByName: Get City by Name

Description Usage Arguments Details Value Examples

View source: R/ComByName.R

Description

Get informations about a French city by its name (partial matches possible). Please note that this package works only with French cities.

Usage

1
ComByName(nom, boost = FALSE, postal = FALSE)

Arguments

nom

a character string with the name of the city, in full ASCII character.

boost

a TRUE or FALSE. Default is FALSE. If TRUE, typographic pertinence score will be weighted by population.

postal

wether or not to include postal codes. Default is FALSE.

Details

Takes a the name of a French city, returns a data.frame with the available values. Partial matches are possible. In that case, typographic pertinence scores are given, and can be weighted by population with the "boost" argument.

Value

Returns a data.frame with name(s), INSEE code(s), postal code(s), INSEE department code(s), INSEE region code(s), population (approx), surface(s) (in hectares), lat and long (WGS-84).

Examples

1
2
3
ComByName(nom = "Brest")
ComByName(nom = "Rennes", boost = TRUE)
ComByName(nom = "Lo", postal = TRUE)

rgeoapi documentation built on May 30, 2017, 12:04 a.m.