getBillSponsors {washex}R Documentation

Get sponsor information for a bill

Description

Get sponsor information for a bill

Usage

getBillSponsors(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

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

Examples

## 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")

[Package washex version 1.2.0 Index]