Function returns all members who took their seats in the house between two given dates.
mnis_joined_between(start_date = "1900-01-01", end_date = Sys.Date(),
house = "all", party = NULL, eligible = "all", tidy = TRUE,
tidy_style = "snake_case")
The start date of the search, 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 '1900-01-01'.
The end date of the search. 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 date.
The house to which the member belongs. Accepts one of 'all', 'lords' and 'commons', defaults to 'all'.
The party to which a member belongs. Defaults to NULL.
If the member is currently eligible to sit. Accepts one of 'all', 'current', 'former', defaults to 'all'.
Fix the variable names in the tibble to remove non-alphanumeric characters and superfluous text, and convert variable names 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".
x <- mnis_joined_between(start_date = '2015-01-01', end_date ='2017-01-01', party='labour')
Run the code above in your browser using DataLab