Returns data on the numbers and gender of MPs, by party, for the given date, in either the House of Commons or the House of Lords.
mnis_party_state(
house = "Commons",
date = Sys.Date(),
tidy = TRUE,
tidy_style = "snake_case"
)
The house of parliament. Accepts either 'Lords'
or
'Commons'
. This parameter is not case sensitive, so both
'lords'
and 'Lords'
return the same result.
Defaults to 'Commons'
.
The date to query party standing on. Accepts character values
in 'YYYY-MM-DD'
format, and objects of class Date
,
POSIXt
, POSIXct
, POSIXlt
or anything else than can
be coerced to a date with as.Date()
.
Defaults to the current system date.
If TRUE
, fixes the variable names in the tibble to
remove non-alphanumeric characters and superfluous text, and convert to
a consistent style. Defaults to TRUE
.
The style to convert variable names to, if
tidy=TRUE
. Accepts one of "snake_case"
, "camelCase"
and
"period.case"
. Defaults to "snake_case"
.
A tibble with information on the total numbers and gender of MPs, by party, for the given date and house.
if (FALSE) {
x <- mnis_party_state("2012-01-12")
}