Returns the session code and other basic details for individual House of Lords sittings. Note that this API does not appear to have been updated with data after 2017-01-31.
lords_sessions(start_date = "1900-01-01", end_date = Sys.Date(),
tidy = TRUE, tidy_style = "snake_case", verbose = TRUE)hansard_lords_sessions(start_date = "1900-01-01", end_date = Sys.Date(),
tidy = TRUE, tidy_style = "snake_case", verbose = TRUE)
Only includes sessions starting on or after this date.
Accepts character values in 'YYYY-MM-DD'
format, and objects of
class Date
, POSIXt
, POSIXct
, POSIXlt
or
anything else that can be coerced to a date with as.Date()
.
Defaults to '1900-01-01'
.
Only includes sessions ending on or before this date.
Accepts character values in 'YYYY-MM-DD'
format, and objects of
class Date
, POSIXt
, POSIXct
, POSIXlt
or
anything else that can be coerced to a date with as.Date()
.
Defaults to the current system date.
Logical parameter. If TRUE
, fixes the variable names
in the tibble to remove special characters and superfluous text, and
converts the variable names to a consistent style. Defaults to TRUE
.
The style to convert variable names to, if
tidy = TRUE
. Accepts one of 'snake_case'
, 'camelCase'
and 'period.case'
. Defaults to 'snake_case'
.
If TRUE
, returns data to console on the progress
of the API request. Defaults to TRUE
.
# NOT RUN {
a <- lords_sessions(start_date = "2017-01-01", end_date = "2017-01-31")
# }
Run the code above in your browser using DataLab