get_voteview_parties {filibustr} | R Documentation |
Get ICPSR party codes from Voteview
Description
get_voteview_parties()
returns a tibble associating ICPSR party codes with more
information on the party.
The parties of the President, Senate, and House are listed in the data.
Each row is one party in one chamber for each Congress (i.e., each party is listed
once for every two years).
Usage
get_voteview_parties(
chamber = "all",
congress = NULL,
local = TRUE,
local_dir = "."
)
Arguments
chamber |
Which chamber to get data for. Options are:
Note that presidents are included in all datasets. Therefore, reading both |
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 |
local |
|
local_dir |
|
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_parties()
# Force to get data from Voteview website
get_voteview_parties(local = FALSE)
# get parties for only one chamber
# NOTE: the President is included in all data
get_voteview_parties(chamber = "house")
get_voteview_parties(chamber = "senate")
# get parties for a specific Congress
get_voteview_parties(congress = 100)
get_voteview_parties(congress = current_congress())
# get parties for a set of Congresses
get_voteview_parties(congress = 1:10)