Learn R Programming

hansard (version 0.4.0)

papers_laid: papers_laid

Description

Imports data on Papers Laid

Usage

papers_laid(withdrawn = FALSE, house = NULL, start_date = "1900-01-01",
  end_date = Sys.Date(), extra_args = NULL, tidy = TRUE)

Arguments

withdrawn

If TRUE, only returns withdrawn papers. Defaults to FALSE.

house

The house the paper was laid in. Accepts 'commons' and 'lords'. If NULL, returns both House of Commons and House of Lords. Defaults to NULL.

start_date

The earliest paper laying date to include in the data frame. Defaults to '1900-01-01'.

end_date

The latest paper laying date to include in the data frame. Defaults to current system date.

extra_args

Additional parameters to pass to API. Defaults to NULL.

tidy

Fix the variable names in the data frame to remove extra characters, superfluous text and convert variable names to snake_case. Defaults to TRUE.

Examples

Run this code

x <- papers_laid(withdrawn = FALSE, house = 'commons')

x <- papers_laid(withdrawn = TRUE, house = NULL,)


Run the code above in your browser using DataLab