Learn R Programming

stortingscrape (version 0.4.1)

get_counties: Get list of electoral districts

Description

A function for retrieving current and/or historical electoral districts (counties) for the Norwegian parliament.

Usage

get_counties(historical = FALSE)

Value

A data frame with the following variables:

response_dateDate of data retrieval
versionData version from the API
historical_countyWhether the county is historical (no longer exists)
idId of the county
nameName of the county

Arguments

historical

Logical. Whether or not to include historical counties.

Examples

Run this code
if (FALSE) { 
# Request one MP by id
get_counties()

# With historical counties
get_counties(historical = TRUE)
}

Run the code above in your browser using DataLab