Learn R Programming

rgeoapi (version 1.1.0)

DepByName: Get Department by Name

Description

Get informations about a French Department by its name. Please note that this package works only with French Department.

Usage

DepByName(nom)

Arguments

nom
a character string with the name of the department.

Value

Returns a data.frame with name, INSEE code, and region code of the department.

Details

Takes a department INSEE code, returns a data.frame with the available values. Partial matches are possible. In that case, typographic pertinence scores are given.

Examples

Run this code
DepByName(nom = "Ille-et-Vilaine")
DepByName(nom = "mo")

Run the code above in your browser using DataLab