publication_logs {hansard} | R Documentation |
House publications
Description
Imports data on House of Commons and House of Lords publications.
Usage
publication_logs(ID = NULL, house = NULL, start_date = "1900-01-01",
end_date = Sys.Date(), extra_args = NULL, tidy = TRUE,
tidy_style = "snake", verbose = TRUE)
hansard_publication_logs(ID = NULL, house = NULL,
start_date = "1900-01-01", end_date = Sys.Date(),
extra_args = NULL, tidy = TRUE, tidy_style = "snake",
verbose = TRUE)
Arguments
ID |
Publication ID. Defaults to |
house |
The house that produced the particular publication. Accepts
|
start_date |
Only includes publications issued on or after this date.
Accepts character values in |
end_date |
Only includes publications issued on or before this
date. Accepts character values in |
extra_args |
Additional parameters and queries to pass to API. These
queries must be strings and start with "&". See the
API documentation
or the package vignette for more details. Defaults to |
tidy |
Logical parameter. If |
tidy_style |
The style to convert variable names to, if
|
verbose |
If |
Value
A tibble with details from publications in the House of Commons and House of Lords
Examples
## Not run:
# All publications in the house of commons
x <- publication_logs(house = "commons")
# Returns a given publication
y <- publication_logs(683267)
## End(Not run)