Learn R Programming

hansard (version 0.3.4)

election_results: election_results

Description

Imports data on general election results

Usage

election_results(resultType = c("all", "ID"))

Arguments

resultType
Accepts the arguments 'all' and 'ID'
all
Returns general and by-election resuls for each consituency from the 2010 general election onwards.
ID
Returns general and by-election resuls for each consituency from the 2010 general election onwards.

Examples

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

Run the code above in your browser using DataLab