s109                  package:pscl                  R Documentation

_r_o_l_l_c_a_l_l _o_b_j_e_c_t, _1_0_9_t_h _U._S. _S_e_n_a_t_e (_2_0_0_5-_0_6).

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     data(s109)

_F_o_r_m_a_t:

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

_D_e_t_a_i_l_s:

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

_S_o_u_r_c_e:

     Keith Poole's web site: <URL: http://voteview.com/senate109.htm>

     Originally scraped from the Senate's web site by Jeff Lewis: see
     <URL: http://adric.sscnet.ucla.edu/rollcall/static/S109.ord>

     Information identifying the votes is available at <URL:
     ftp://voteview.com/dtaord/s109desc_final.csv>

_E_x_a_m_p_l_e_s:

     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("ftp://voteview.com/dtaord/sen109kh.ord",
                    desc="109th U.S. Senate",
                    debug=TRUE)
     url <- "ftp://voteview.com/dtaord/s109desc_final.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)

