Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

s109

rollcall object, 109th U.S. Senate (2005-06).


Description

A sample rollcall object, generated using a collection of the rollcalls of the 109th U.S. Senate (2005-2006).

Usage

data(s109)

Format

A rollcall object containing the recorded votes of the 109th U.S. Senate, plus information identifying the legislators and the rollcalls.

Details

Note the coding scheme used by Poole and Rosenthal; Yea (1), Nay (6) etc.

Source

Originally scraped from the Senate's web site by Jeff Lewis (UCLA).

Information identifying the votes is available at https://voteview.com/static/data/out/rollcalls/S109_rollcalls.csv

Examples

require(pscl)
data(s109)
is(s109,"rollcall")    ## TRUE
s109                   ## print method for class rollcall
summary(s109)          ## summary method
summary(s109,verbose=TRUE)
## Not run: 
## how s109 was created
require(pscl)
s109 <- readKH("https://voteview.com/static/data/out/votes/S109_votes.ord",
               desc="109th U.S. Senate",
               debug=TRUE)
url <- "https://voteview.com/static/data/out/rollcalls/S109_rollcalls.csv"

s109$vote.data <- data.frame(read.csv(file=url,header=TRUE))
s109$vote.data$date <- as.Date(s109$vote.data$date,
                               format="
dimnames(s109$votes)[[2]] <- paste(s109$vote.data$session,
                                   s109$vote.data$number,sep="-")

## End(Not run)

pscl

Political Science Computational Laboratory

v1.5.5
GPL-2
Authors
Simon Jackman, with contributions from Alex Tahk, Achim Zeileis, Christina Maimone, Jim Fearon and Zoe Meers
Initial release
2020-02-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.