getCommitteeMembers: Get committee members

Description Usage Arguments Value Examples

View source: R/getCommitteeMembers.R

Description

Get committee members

Usage

1
2
3
4
5
6
7
getCommitteeMembers(
  biennium,
  agency = c("House", "Senate"),
  name,
  paired = FALSE,
  type = c("df", "list", "xml")
)

Arguments

biennium

Character vector representing the biennium(s) to be searched. Each argument should take the form "XXXX-YY"

agency

One of "House" or "Senate", or a vector with these as its elements.

name

Character vector of committee names. To get the committee names for a particular session, see getCommittees.

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

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

Examples

1
2
3
4
5
## get all committee members for a select number of committees and years
years <- c("2011-12","2013-14")
comms <- c("Education","Judiciary")

getCommitteeMembers(years, agency = "House", comms, paired = TRUE)

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