Package: mnis 0.3.1

mnis: Easy Downloading Capabilities for the Members' Name Information Service

An API package for the Members' Name Information Service operated by the UK parliament. Documentation for the API itself can be found here: <http://data.parliament.uk/membersdataplatform/default.aspx>.

Authors:Evan Odell [aut, cre]

mnis_0.3.1.tar.gz
mnis_0.3.1.zip(r-4.5)mnis_0.3.1.zip(r-4.4)mnis_0.3.1.zip(r-4.3)
mnis_0.3.1.tgz(r-4.4-x86_64)mnis_0.3.1.tgz(r-4.4-arm64)mnis_0.3.1.tgz(r-4.3-x86_64)mnis_0.3.1.tgz(r-4.3-arm64)
mnis_0.3.1.tar.gz(r-4.5-noble)mnis_0.3.1.tar.gz(r-4.4-noble)
mnis_0.3.1.tgz(r-4.4-emscripten)mnis_0.3.1.tgz(r-4.3-emscripten)
mnis.pdf |mnis.html
mnis/json (API)
NEWS

# Install 'mnis' in R:
install.packages('mnis', repos = c('https://evanodell.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/evanodell/mnis/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

parliamentary-monitoringpolitical-sciencepoliticianspolitics

81 exports 4 stars 1.02 score 34 dependencies 67 scripts 198 downloads

Last updated 3 years agofrom:40d5909ff8. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 08 2024
R-4.5-win-x86_64OKSep 08 2024
R-4.5-linux-x86_64OKSep 08 2024
R-4.4-win-x86_64OKSep 08 2024
R-4.4-mac-x86_64OKSep 08 2024
R-4.4-mac-aarch64OKSep 08 2024
R-4.3-win-x86_64OKSep 08 2024
R-4.3-mac-x86_64OKSep 08 2024
R-4.3-mac-aarch64OKSep 08 2024

Exports:constituency_results_tidydate_tidymember_tidymnis_addressesmnis_all_membersmnis_all_referencemnis_basemnis_basic_detailsmnis_biography_entriesmnis_bommnis_committeesmnis_constituenciesmnis_constituency_resultsmnis_departmentmnis_elections_contestedmnis_eligiblemnis_experiencesmnis_full_biogmnis_general_election_resultsmnis_government_postsmnis_honoursmnis_house_membershipsmnis_interestsmnis_joined_betweenmnis_known_asmnis_lords_typemnis_maiden_speechesmnis_member_datemnis_mps_on_datemnis_opposition_postsmnis_other_parliamentsmnis_parliamentary_postsmnis_partiesmnis_party_statemnis_peers_on_datemnis_political_interestsmnis_preferred_namesmnis_staffmnis_statusesmnis_tidyref_address_typesref_answering_bodiesref_area_typesref_areasref_biography_categoriesref_cabinetsref_committee_typesref_committeesref_constituenciesref_constituency_areasref_constituency_typesref_countriesref_departmentsref_disqualification_typesref_election_typesref_electionsref_end_reasonsref_experience_typesref_government_post_departmentsref_government_postsref_government_ranksref_honour_listsref_honourary_prefixesref_honoursref_interest_categoriesref_lords_membership_typesref_lords_ranksref_opposition_post_departmentsref_opposition_postsref_opposition_ranksref_other_parliamentsref_parliament_typesref_parliamentary_postsref_parliamentary_ranksref_partiesref_party_sub_typesref_photo_outputsref_statusesref_tidyref_titlestidy_bom

Dependencies:askpassclicpp11curldplyrfansigenericsgluehmshttrjanitorjsonlitelifecyclelubridatemagrittrmimeopensslpillarpkgconfigpurrrR6Rcpprlangsnakecasestringistringrsystibbletidyrtidyselecttimechangeutf8vctrswithr

Introduction to mnis

Rendered fromintroduction.Rmdusingknitr::rmarkdownon Sep 08 2024.

Last update: 2020-09-06
Started: 2016-12-28

Readme and manuals

Help Manual

Help pageTopics
constituency_results_tidyconstituency_results_tidy
A function that makes date variables returned from the API datable, ie by converting them to POSIXct. Does the same thing for datetimes.date_tidy
mnis: Easy Downloading Capabilities for the Member Name Information Servicemnis
All members datamnis_all_members
Returns a list of 39 tibbles, with the name and data returned from each respective reference function.mnis_all_reference
A generic function for the MNIS APImnis_base
Additional member informationmnis_addresses mnis_basic_details mnis_biography_entries mnis_committees mnis_constituencies mnis_elections_contested mnis_experiences mnis_government_posts mnis_honours mnis_house_memberships mnis_interests mnis_known_as mnis_maiden_speeches mnis_opposition_posts mnis_other_parliaments mnis_parliamentary_posts mnis_parties mnis_preferred_names mnis_staff mnis_statuses
Strip out BOM from JSON datamnis_bom
Constituency election resultsmnis_constituency_results
mnis_departmentmnis_department
mnis_eligiblemnis_eligible
Full Biographymnis_full_biog
Election resultsmnis_general_election_results
Members who joined between two dates.mnis_joined_between
Peers' party affiliationsmnis_lords_type
Returns a tibble with a member's status on a given date.mnis_member_date
All MPs between two datesmnis_mps_on_date
Party standing on a given datemnis_party_state
Peers on datemnis_peers_on_date
Political and Geographical Interestsmnis_political_interests
Functions to tidy up the variable names returned from the API, and turn dates and datetimes to POSIXct.member_tidy mnis_tidy ref_tidy
Reference dataref_address_types ref_answering_bodies ref_areas ref_area_types ref_biography_categories ref_cabinets ref_committees ref_committee_types ref_constituencies ref_constituency_areas ref_constituency_types ref_countries ref_departments ref_disqualification_types ref_elections ref_election_types ref_end_reasons ref_experience_types ref_government_posts ref_government_post_departments ref_government_ranks ref_honourary_prefixes ref_honours ref_honour_lists ref_interest_categories ref_lords_membership_types ref_lords_ranks ref_opposition_posts ref_opposition_post_departments ref_opposition_ranks ref_other_parliaments ref_parliamentary_posts ref_parliamentary_ranks ref_parliament_types ref_parties ref_party_sub_types ref_photo_outputs ref_statuses ref_titles
A function to strip Byte Order Marks (BOM) out of JSON data returned from the API.tidy_bom