Description Usage Arguments Examples
View source: R/mnis_eligible.R
Returns all members who are able to sit in either house, or who are currently ineligible to sit. Members ineligible to sit include but are not necessarily limited to former MPs, members of the judiciary, who are recused from House of Lords duties.
1 2 3 4 5 6 7 | mnis_eligible(
eligible = TRUE,
house = "all",
party = NULL,
tidy = TRUE,
tidy_style = "snake_case"
)
|
eligible |
If the member is currently eligible to sit. Accepts
|
house |
The house to which the member belongs. Accepts one of 'all', 'lords' and 'commons', defaults to 'all'. This parameter is not case sensitive, so 'commons', 'Commons' and 'cOmMOnS' will all return the same data. |
party |
The party to which a member belongs. Defaults to NULL. The
party must be fully spelled out (e.g. 'green party'), the API does not
accept searches on this parameter. For a tibble of parties,
see |
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 |
tidy_style |
The style to convert variable names to, if |
1 2 3 4 5 6 7 8 | ## Not run:
x <- mnis_eligible(eligible = FALSE, house = "all", party = "labour")
y <- mnis_eligible(eligible = TRUE, house = "all", party = "green party")
z <- mnis_eligible(house = "commons")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.