getCurrentStatus: Get bill status

Description Usage Arguments Value Note Examples

View source: R/getCurrentStatus.R

Description

Get the current status of a given bill

Usage

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

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

Note

This function returns the bill's status as of today. If a bill was never passed, it lists the most recent status. To get a bill's complete history, use getStatusChanges

Examples

1
2
3
4
5
6
7
getCurrentStatus("2007-08", "1001")

## get final status for all bills written in 2011
## Not run: 
billNums <- getLegislationByYear("2011")
status <- getCurrentStatus("2011-12", billNums$billNumber)
## End(Not run)

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