bills: bills

Description Usage Arguments Examples

Description

Imports data on House of Commons and House of Lords bills

Returns a data frames with all possible bill stage types.

Usage

1
2
3
4
bills(ID = NULL, amendments = FALSE, start_date = "1900-01-01",
  end_date = Sys.Date(), extra_args = NULL, tidy = TRUE)

bill_stage_types(tidy = TRUE)

Arguments

ID

The ID of a given bill to return data on. If NULL, returns all bills, subject to other parameters. Defaults to NULL.

amendments

If TRUE, returns all bills with amendments. Defaults to FALSE.

start_date

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

end_date

The latest 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 

x <- bills()

x <- bills(amendments=TRUE)

x <- bills(1719)



## End(Not run)
## Not run: 
x <- bill_stage_types()

## End(Not run)


Search within the hansard package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.