Learn R Programming

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

hansard (version 0.4.6)

Provides Easy Downloading Capabilities for the UK Parliament API

Description

Provides functions to download data from the APIs. Because of the structure of the API, there is a named function for each type of available data for ease of use, as well as some functions designed to retrieve specific pieces of commonly used data. Functions for each new API will be added as and when they become available.

Copy Link

Version

Install

install.packages('hansard')

Monthly Downloads

59

Version

0.4.6

License

MIT + file LICENSE

Maintainer

Evan Odell evanodell91@gmail.com

Last Published

June 5th, 2017

Functions in hansard (0.4.6)

all_answered_questions

Imports data on all answered parliamentary questions.
bills

Imports data on House of Commons and House of Lords bills
commons_answered_questions

Imports data on House of Commons answered questions. If all parameters are left empty, imports all available answered questions in a tibble.
commons_division_date

Returns a tibble with the dates of House of Commons divisions.
commons_oral_questions

Imports data on House of Commons oral questions
commons_terms

Imports the parliamentary thesaurus. The API is rate limited to 5500 requests at a time, so some use of parameters is required.
commons_divisions

Imports data on House of Commons divisions.
commons_oral_question_times

Imports data on House of Commons oral question times
commons_written_questions

Imports data in a tibble on House of Commons written questions.
constituencies

Imports data on House of Commons constituencies, returning a tibble of all current and former Westminster constituencies.
early_day_motions

Imports data on early day motions
papers_laid

Imports data on papers laid before the House.
publication_logs

Imports data on House of Commons and House of Lords publications.
hansard_tidy

hansard_tidy
lord_vote_record

Accepts an ID number for a member of the House of Commons, and returns a tibble of their votes.
mp_questions

Accepts an ID number for a member of the House of Commons, and returns a tibble of of all their oral and written questions.
mp_vote_record

Accepts an ID number for a member of the House of Commons, and returns a tibble of their votes.
election_results

Imports data on general election and by-election results
lords_amendments

Imports data on House of Lords Amendments. Returns a tibble with all available House of Lords amendments.
lords_ammendments

Defunct parameters for hansard package
lords_attendance

Imports data on House of Lords attendance. Please note that the attendance data is not as tidy as some of the others that are accessible through this API, and so additional work to prepare this data in a way that you want may be required.
lords_divisions

Imports data on House of Lords divisions
elections

Imports data on elections
epetition

Imports data on Epetitions
research_briefings

research_topics_list

research_topics_list
hansard

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

Hansard - Generic API Function
lords_written_questions

Imports data on House of Lords written questions
members

Imports data on all current and former Members of Parliament including the Lords and the Commons
members_search

Search for an MP or Lord by name and constituency
mp_edms

Imports data on early day motions in signed, sponsored or primarily sponsored by a given MP.
sessions_info

Imports data on Parliamentary Sessions. Note that due to the date format used by the API, if days==TRUE and the end_date and start_date parameters are not set to the default values, the function downloads all available data and then subsets the tibble between the two given dates.
tv_programmes

Imports data on TV broadcasts. To import information on TV channel options,