get_voteview_member_votes {filibustr}R Documentation

Get data on the votes of individual members of Congress

Description

get_voteview_member_votes() returns a tibble that lists how each member of Congress voted in recorded (roll call) votes in the House and Senate. Members are identified by their ICPSR ID number, which you can use to join with additional member data from get_voteview_members().

Usage

get_voteview_member_votes(
  chamber = "all",
  congress = NULL,
  local = TRUE,
  local_dir = "."
)

Arguments

chamber

Which chamber to get data for. Options are:

  • "all", "congress": Both House and Senate data (the default).

  • "house", "h", "hr": House data only.

  • "senate", "s", "sen": Senate data only. These options are case-insensitive. If you explicitly pass a different value, it will default to "all" with a warning.

congress

A whole number (to get data for a single Congress), or a numeric vector (to get data for a set of congresses). Optional; will retrieve data for all Congresses by default. If specified, Congress numbers cannot be greater than the current_congress() (i.e., you cannot try to get future data).

local

[Experimental] Whether to read the data from a local file, as opposed to the Voteview website. Default is TRUE. If the local file does not exist, will fall back to reading from online.

local_dir

[Experimental] The directory containing the local file. Defaults to the working directory.

Details

See the Voteview website for more information on their data.

Please cite this dataset as:

Lewis, Jeffrey B., Keith Poole, Howard Rosenthal, Adam Boche, Aaron Rudkin, and Luke Sonnet (2023). Voteview: Congressional Roll-Call Votes Database. https://voteview.com/

Value

A tibble().

Examples


get_voteview_member_votes()

# Force to get data from Voteview website
get_voteview_member_votes(local = FALSE)

# Get data for only one chamber
get_voteview_member_votes(chamber = "house")
get_voteview_member_votes(chamber = "senate")

# Get data for a specific Congress
get_voteview_member_votes(congress = 110)
get_voteview_member_votes(congress = current_congress())

# Get data for a set of Congresses
get_voteview_member_votes(congress = 1:3)


[Package filibustr version 0.2.1 Index]