Description Usage Arguments Value Examples
View source: R/commons_divisions.R
Imports data on House of Commons divisions (votes), either full details on how each member voted, or a summary of vote totals.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23  | commons_divisions(
  division_id = NULL,
  division_uin = NULL,
  summary = FALSE,
  start_date = "1900-01-01",
  end_date = Sys.Date(),
  extra_args = NULL,
  tidy = TRUE,
  tidy_style = "snake",
  verbose = TRUE
)
hansard_commons_divisions(
  division_id = NULL,
  division_uin = NULL,
  summary = FALSE,
  start_date = "1900-01-01",
  end_date = Sys.Date(),
  extra_args = NULL,
  tidy = TRUE,
  tidy_style = "snake",
  verbose = TRUE
)
 | 
division_id | 
 The id of a particular vote. If empty, returns a
tibble with information on all commons divisions, subject to all other
parameters. Defaults to   | 
division_uin | 
 The UIN of a particular vote. If empty, returns a
tibble with information on all commons divisions, subject to all other
parameters. Defaults to   | 
summary | 
 If   | 
start_date | 
 Only includes divisions on or after this date. Accepts
character values in   | 
end_date | 
 Only includes divisions 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   | 
A tibble with the results of divisions in the House of Commons.
1 2 3 4 5 6 7 8 9  | ## Not run: 
## All commons divisions
x <- commons_divisions()
## Vote breakdown of specific commons division
y <- commons_divisions(division_id = 694163, summary = FALSE)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.