mnis_joined_between: Function returns all members who took their seats in the...

Description Usage Arguments Examples

View source: R/mnis_joined_between.R

Description

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

Usage

1
2
3
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

1
2
3
4
5
6
## Not run: 

x <- mnis_joined_between(start_date = '2015-01-01', end_date ='2017-01-01', party='labour')


## End(Not run)

mnis documentation built on May 2, 2019, 11:02 a.m.