Learn R Programming

rgeoapi (version 1.1.0)

ComByDep: Get Cities by Department

Description

Get informations about all the cities in a French department by its INSEE Code. Please note that this package works only with French cities.

Usage

ComByDep(codeDepartement, postal = FALSE)

Arguments

codeDepartement
a numeric vector with a department INSEE Code.
postal
wether or not to include postal codes. Default is FALSE.

Value

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

Details

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

Examples

Run this code
ComByDep(codeDepartement = 35) 
ComByDep(codeDepartement = 29, postal = TRUE)

Run the code above in your browser using DataLab