mnis_all_members: All members data

Description Usage Arguments Value Examples

View source: R/mnis_all_members.R

Description

Returns a tibble with information on all members of both houses or a given house.

Usage

1
2
3
4
5
6
mnis_all_members(
  house = "all",
  party = NULL,
  tidy = TRUE,
  tidy_style = "snake_case"
)

Arguments

house

The house to which the member belongs. Accepts one of 'all', 'lords' and 'commons'. This parameter is not case sensitive, so 'commons', 'Commons' and 'cOmMOnS' will all return the same data. Defaults to 'all'.

party

The party to which a member belongs. If NULL, all members are returned, subject to other parameters. 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 information on all members of the House of Commons and/or the House of Lords that meet the criteria included in the function parameters.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
x <- mnis_all_members(
  house = "all", party = NULL, tidy = TRUE,
  tidy_style = "snake_case"
)

## End(Not run)

## Not run: 
x <- mnis_all_members(
  house = "all", party = NULL, tidy = TRUE,
  tidy_style = "snake_case"
)

## End(Not run)

mnis documentation built on April 4, 2021, 1:06 a.m.