Learn R Programming

rgeoapi (version 1.1.0)

ComByCode: Get City by INSEE Code

Description

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

Usage

ComByCode(codeInsee, postal = FALSE)

Arguments

codeInsee
numeric vector with an INSEE code.
postal
wether or not to include postal codes. Default is FALSE.

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).

Details

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

Examples

Run this code
ComByCode(codeInsee = 29019) 
ComByCode(codeInsee = 31555, postal = TRUE)
ComByCode(codeInsee = ComByName("Rennes")[1,"codeInsee"])

Run the code above in your browser using DataLab