Learn R Programming

hansard (version 0.5.0)

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

Description

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

Imports data on all current and former MPs

Imports data on all current and former peers

Usage

members(ID = NULL, extra_args = NULL, tidy = TRUE,
  tidy_style = "snake_case")

hansard_members(ID = NULL, extra_args = NULL, tidy = TRUE, tidy_style = "snake_case")

commons_members(extra_args = NULL, tidy = TRUE, tidy_style = "snake_case")

hansard_commons_members(extra_args = NULL, tidy = TRUE, tidy_style = "snake_case")

lords_members(extra_args = NULL, tidy = TRUE, tidy_style = "snake_case")

hansard_lords_members(extra_args = NULL, tidy = TRUE, tidy_style = "snake_case")

Arguments

ID

The ID of a member of the House of Commons or the House of Lords. Defaults to NULL. If NULL, returns a tibble of all members. If not NULL, returns a tibble with basic information on that member.

extra_args

Additional parameters to pass to API. Defaults to NULL.

tidy

Fix the variable names in the tibble to remove special characters and superfluous text, and converts the variable names to a consistent style. Defaults to TRUE.

tidy_style

The style to convert variable names to, if tidy = TRUE. Accepts one of 'snake_case', 'camelCase' and 'period.case'. Defaults to 'snake_case'.

Value

A tibble with data on members of the House of Commons and/or the House of Lords.

See Also

members_search

Examples

Run this code
# NOT RUN {
x <- members(172)

x <- commons_members()

x <- lords_members()

x <- lords_interests(530)
# }

Run the code above in your browser using DataLab