getAmendments: Get amendments to a bill

Description Usage Arguments Value Examples

View source: R/getAmendments.R

Description

Get a list of all proposed amendments (accepted and rejected) on the bill, including the URL to the amendment text

Usage

1
2
3
4
5
6
getAmendments(
  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

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

Examples

1
2
3
4
5
6
7
8
## get amendments for a single bill
getAmendments("2007-08", "1001")

## get amendments for a specific set of bills
years <- c("2005-06","2007-08","2007-08")
bills <- c(1447,1219,1001)

getAmendments(years, bills, paired = TRUE, type = "df")

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