getLegislation: Get summary information on a particular bill

Description Usage Arguments Value Examples

View source: R/getLegislation.R

Description

Get legislative summary information for a particular bill, including bill ID, introduction date, bill title(s), and description

Usage

1
2
3
4
5
6
getLegislation(
  biennium,
  billNumber,
  paired = TRUE,
  type = c("df", "list", "xml")
)

Arguments

biennium

Character vector representing the biennium(s) to be searched. Each argument should take the form "XXXX-YY"

billNumber

Character or numeric vector containing the bill number(s) to be retrieved.

paired

If TRUE, will assume that equal length vectors represent paired data. Set to FALSE to generate an NxN grid of input arguments. Applies to equal length vector inputs only.

type

One of "df", "list", or "xml". Specifies the format for the output.

Value

getLegislation returns an object of type equal to the type argument (defaults to dataframe)

Examples

1
2
3
4
getLegislation("2007-08", "1001")

## get XML data for the first 100 hundred bills of the 2007-08 session
## Not run: getLegislation("2007-08", 1001:1100, type = "xml")

washex documentation built on Nov. 17, 2021, 5:18 p.m.