Learn R Programming

pscl (version 0.5)

s109: rollcall object, 109th U.S. Senate

Description

A sample rollcall object, generated using Jeff Lewis' quasi-real-time collection of the rollcalls of the 109th U.S. Senate (2005-2006).

Usage

data(s109)

Arguments

format

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

source

Jeff Lewis' web site: http://adric.sscnet.ucla.edu/rollcall/static/S109.ord Information identifying the votes is available at http://adric.sscnet.ucla.edu/rollcall/static/S109desc.csv

Details

The most recent rollcall in this version of the data set is dated June 29, 2006.

Examples

Run this code
data(s109)
require(pscl)
is(s109,"rollcall")
s109
summary(s109)
summary(s109,verbose=TRUE)
## how s109 was created
s109 <- readKH("http://adric.sscnet.ucla.edu/rollcall/static/S109.ord",
               desc="109th U.S. Senate",
               debug=TRUE)
url <- "http://adric.sscnet.ucla.edu/rollcall/static/S109desc.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="-")

Run the code above in your browser using DataLab