getAffectedRCW {washex} | R Documentation |
Link bills to Revised Code of Washington (RCW)
Description
Get a listing of all RCW citations affected by a given bill
Usage
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
## 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)
[Package washex version 1.2.0 Index]