ppc_votes: Votes

Description Usage Arguments Details Value Examples

View source: R/ppc_votes.R

Description

Get Recent Votes

Usage

1
ppc_votes(chamber = c("both", "house", "senate"), api_key = NULL, raw = FALSE)

Arguments

chamber

Specify the chamber of Congress typically "house" or "senate"; sometimes "both" or "joint"

api_key

The actual API key string provided by ProPublica.

raw

Logical indicating whether to return the raw response object. The default (FALSE) parses the content and returns a tibble data frame.

Details

By tradition, the Speaker of the House votes at his or her discretion, and typically does not vote. When the Speaker does vote, the official source data from the Clerk of the House includes that information, but when the Speaker does not vote, the data provided by the Clerk does not include that information. In those cases, ProPublica adds a record showing the Speaker as not voting and increases the total number of lawmakers not voting by one (both in the Speaker's party and overall). In those cases, the not voting totals provided by the API for House votes will not match the Clerk's totals.

Value

A data frame of congressional votes information

Examples

1
2
3
4
5
6
7
8
## Not run: 
## get votes from only the house
hv <- ppc_votes("house")

## get votes from the house and the senate
hsv <- ppc_votes("both")

## End(Not run)

mkearney/ppc documentation built on Dec. 18, 2019, 5:40 a.m.