Description Usage Arguments Value Examples
View source: R/getBillSponsors.R
Get sponsor information for a bill
1 | getBillSponsors(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. |
getBillSponsors
returns an object of type equal to the
type
argument (defaults to dataframe)
1 2 3 4 | ## get the list of all sponsors on a set of bills, filtered for primary sponsorship
spons <- getBillSponsors("2007-08", c("HB 1001", "HB 1002", "HB 1003"))
if(!is.null(spons)) sponsP <- subset(spons, Type == "Primary")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.