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:
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.5-x86_64)mnis_0.3.1.tgz(r-4.5-arm64)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')) |
Bug tracker:https://github.com/evanodell/mnis/issues
Pkgdown site:https://docs.evanodell.com
parliamentary-monitoringpolitical-sciencepoliticianspoliticscpp
Last updated 4 years agofrom:40d5909ff8. Checks:11 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Feb 05 2025 |
R-4.5-win-x86_64 | OK | Feb 05 2025 |
R-4.5-mac-x86_64 | OK | Feb 05 2025 |
R-4.5-mac-aarch64 | OK | Feb 05 2025 |
R-4.5-linux-x86_64 | OK | Feb 05 2025 |
R-4.4-win-x86_64 | OK | Feb 05 2025 |
R-4.4-mac-x86_64 | OK | Feb 05 2025 |
R-4.4-mac-aarch64 | OK | Feb 05 2025 |
R-4.3-win-x86_64 | OK | Feb 05 2025 |
R-4.3-mac-x86_64 | OK | Feb 05 2025 |
R-4.3-mac-aarch64 | OK | Feb 05 2025 |
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
Readme and manuals
Help Manual
Help page | Topics |
---|---|
constituency_results_tidy | constituency_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 Service | mnis |
All members data | mnis_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 API | mnis_base |
Additional member information | mnis_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 data | mnis_bom |
Constituency election results | mnis_constituency_results |
mnis_department | mnis_department |
mnis_eligible | mnis_eligible |
Full Biography | mnis_full_biog |
Election results | mnis_general_election_results |
Members who joined between two dates. | mnis_joined_between |
Peers' party affiliations | mnis_lords_type |
Returns a tibble with a member's status on a given date. | mnis_member_date |
All MPs between two dates | mnis_mps_on_date |
Party standing on a given date | mnis_party_state |
Peers on date | mnis_peers_on_date |
Political and Geographical Interests | mnis_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 data | ref_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 |