Learn R Programming

mnis (version 0.2.7)

mnis_joined_between: Function returns all members who took their seats in the house between two given dates.

Description

Function returns all members who took their seats in the house between two given dates.

Usage

mnis_joined_between(start_date = "1900-01-01", end_date = Sys.Date(),
  house = "all", party = NULL, eligible = "all", tidy = TRUE,
  tidy_style = "snake_case")

Arguments

start_date

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'.

end_date

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.

house

The house to which the member belongs. Accepts one of 'all', 'lords' and 'commons', defaults to 'all'.

party

The party to which a member belongs. Defaults to NULL.

eligible

If the member is currently eligible to sit. Accepts one of 'all', 'current', 'former', defaults to 'all'.

tidy

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.

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".

Examples

Run this code


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