getAffectedRCW: Link bills to Revised Code of Washington (RCW)

Description Usage Arguments Value Note Examples

View source: R/getAffectedRCW.R

Description

Get a listing of all RCW citations affected by a given bill

Usage

1
getAffectedRCW(biennium, billId, 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"

billId

Character vector containing the bill(s) to be retrieved. Each argument should take the form "XX YYYY", where XX is the prefix (HB, SB, etc.) and YYYY is the bill number.

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

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

Note

for more information on RCW codes, see https://apps.leg.wa.gov/rcw/

Examples

1
2
3
4
5
6
7
8
## usage for a single bill case, XML form
getAffectedRCW("2005-06", "HB 1427", type = "xml")

## generates a dataframe of affected codes from all bills in 2007
## Not run: 
bills <- getLegislationByYear("2007")
codesAffected <- getAffectedRCW("2007-08", bills$BillId)
## End(Not run)

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