Learn R Programming

mnis (version 0.3.1)

Easy Downloading Capabilities for the Members' Name Information Service

Description

An API package for the Members' Name Information Service operated by the UK parliament. Documentation for the API itself can be found here: .

Copy Link

Version

Install

install.packages('mnis')

Monthly Downloads

161

Version

0.3.1

License

MIT + file LICENSE

Maintainer

Evan Odell evanodell91@gmail.com

Last Published

April 3rd, 2021

Functions in mnis (0.3.1)

constituency_results_tidy

constituency_results_tidy
mnis_all_reference

Returns a list of 39 tibbles, with the name and data returned from each respective reference function.
mnis_bom

Strip out BOM from JSON data
mnis_base

A generic function for the MNIS API
date_tidy

A function that makes date variables returned from the API datable, ie by converting them to POSIXct. Does the same thing for datetimes.
mnis_constituency_results

Constituency election results
mnis_all_members

All members data
mnis

mnis: Easy Downloading Capabilities for the Member Name Information Service
mnis_basic_details

Additional member information
mnis_eligible

mnis_eligible
mnis_mps_on_date

All MPs between two dates
mnis_member_date

Returns a tibble with a member's status on a given date.
mnis_lords_type

Peers' party affiliations
mnis_full_biog

Full Biography
tidy_bom

A function to strip Byte Order Marks (BOM) out of JSON data returned from the API.
mnis_party_state

Party standing on a given date
mnis_general_election_results

Election results
mnis_joined_between

Members who joined between two dates.
mnis_political_interests

Political and Geographical Interests
mnis_tidy

Functions to tidy up the variable names returned from the API, and turn dates and datetimes to POSIXct.
ref_address_types

Reference data
mnis_peers_on_date

Peers on date
mnis_department

mnis_department