Description Usage Arguments Value Note Examples
View source: R/getAffectedRCW.R
Get a listing of all RCW citations affected by a given bill
1 | getAffectedRCW(biennium, billId, paired = TRUE, type = c("df", "list", "xml"))
|
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. |
getAffectedRCW
returns an object of type equal to the
type
argument (defaults to dataframe)
for more information on RCW codes, see https://apps.leg.wa.gov/rcw/
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.