mnis_lords_type: Peers' party affiliations

Description Usage Arguments Value See Also Examples

View source: R/mnis_lords_type.R

Description

Calls the API to return a tibble with details on the number of Lords and their party affiliations. Defaults to the current date, but can also return the number of Lords and their affiliations on a given date.

Usage

1
mnis_lords_type(date = Sys.Date(), tidy = TRUE, tidy_style = "snake_case")

Arguments

date

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(). The API will return data on the state of the House of Lords on that date. Defaults to the current system date.

tidy

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.

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

Value

A tibble with information on the numbers of different types of Lords on a given date.

See Also

mnis_reference

Examples

1
2
3
4
## Not run: 
x <- mnis_lords_type()

## End(Not run)

EvanOdell/mnis documentation built on March 21, 2018, 10:52 p.m.