Learn R Programming

rgeoapi (version 1.1.0)

RegByName: Get Region by Name

Description

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

Usage

RegByName(nom)

Arguments

nom
a character string with the name of the department. Partial matches are possible. In that case, typographic pertinence scores are given.

Value

Returns a data.frame with name, INSEE code, and typographic pertinence score for the request.

Details

Takes a name, returns a data.frame with the available values.

Examples

Run this code
RegByName(nom = "Bretagne")
RegByName(nom = "M")

Run the code above in your browser using DataLab