ComByCode: Get City by INSEE Code

Description Usage Arguments Details Value Note Examples

View source: R/ComByCode.R

Description

Get informations about a French city by its INSEE code. Please note that this package works only with French cities.

Usage

1
ComByCode(codeInsee, postal = FALSE)

Arguments

codeInsee

numeric vector with an INSEE code.

postal

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

Details

Takes an INSEE Code, returns a data.frame with the available values.

Value

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

Note

If you don't know the INSEE code of the city you're looking for, you can find it by using the ComByName function.

Examples

1
2
3
ComByCode(codeInsee = 29019) 
ComByCode(codeInsee = 31555, postal = TRUE)
ComByCode(codeInsee = ComByName("Rennes")[1,"codeInsee"])

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