Learn R Programming

⚠️There's a newer version (0.8.0) of this package.Take me there.

hansard: Accessing Westminster Parliament Data

An R package to automatically fetch data from the UK Parliament API. Ironically, Hansard data is not yet accessible through the API. To explore all available data see http://www.data.parliament.uk/. Help on the API itself is here: http://api.data.parliament.uk/help/.

Like the UK parliament API, this package is a work in progress. Additional functionalities will be added to the package as they are developed in the API.

To install from CRAN (version 0.3.4) run:

install.packages("hansard")

To install the development version run:

install.packages("devtools")
devtools::install_github("EvanOdell/hansard")

Using hansard

For an introduction to hansard, the vignette vignette("introduction", package = "hansard") is the best place to start. If you are unfamiliar with APIs https://zapier.com/learn/apis/ is a helpful introduction.

API calls with console input

Previous versions (<=0.3.4) of hansard included options for console-based inputs to call data and interact with the API. This feature has been removed from subsequent versions, and is available in the https://github.com/EvanOdell/hansard-console. There are no plans to submit this to CRAN, and it is not being actively maintained.

Copy Link

Version

Install

install.packages('hansard')

Monthly Downloads

59

Version

0.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Evan Odell evanodell91@gmail.com

Last Published

March 24th, 2017

Functions in hansard (0.4.0)

commons_divisions

commons_divisions
tv_programmes

tv_programmes
election_results

election_results
commons_oral_question_times

commons_oral_question_times
commons_oral_questions

commons_oral_questions
commons_terms

commons_terms
lords_amendments

lords_amendments
lords_attendance

lords_attendance
mp_edms

mp_edms
mp_questions

mp_questions
all_answered_questions

all_answered_questions
bills

bills
early_day_motions

early_day_motions
mp_vote_record

mp_vote_record
papers_laid

papers_laid
elections

elections
epetition

epetition
members

members
commons_answered_questions

commons_answered_questions
commons_division_date

commons_division_date
hansard_tidy

hansard_tidy
lord_vote_record

lord_vote_record
commons_written_questions

commons_written_questions
constituencies

constituencies
hansard

hansard: Provides Easy Downloading Capabilities for the UK Parliament API
hansard_generic

Hansard - Generic API Function
members_search

members_search
publication_logs

publication_logs
research_briefings

research_briefings
research_topics_list

research_topics_list
sessions_info

sessions_info
lords_divisions

lords_divisions
lords_written_questions

lords_written_questions