Learn R Programming

hansard (version 0.3.4)

elections: elections

Description

Imports data on elections

Usage

elections(electType = c("all", "ID"))

Arguments

electType
Allows the arguments 'all' and 'ID'
all
Returns a data frame with the date and type of all general and by-elections since 1945.
ID
Requests an election ID, and returns a data frame with the date and type of that election.

Examples

Run this code
## Not run: 
# x <- elections('all')
# 
# x <- elections('ID')
# ## End(Not run)

Run the code above in your browser using DataLab