Bills

Share:

Description

Imports data on House of Commons and House of Lords bills

Usage

1
bills(billType = c("ammended", "stageTypes", "publications"))

Arguments

billType

The type of data you want, allows the arguments 'ammended', 'publications' and 'stageTypes'

ammended

Imports a data frame with all ammended bills

stageTypes

Imports a data frame with all bill stage types

publications

Imports a data frame with all bill publications

Note

There are problems with the Bills API, as the JSON data available for some queries, including the query to return all bills currently before the house, is inconsistently formatted and cannot be parsed into a data frame.

Examples

1
2
3
4
5
6
7
8
## Not run: 
x <- bills('all')

x <- bills('ammended')

x <- bills('stageTypes')

## End(Not run)