rollcall
object from the flat file format for roll
call data used by
Keith Poole and Howard Rosenthal.readKH(file,
dtl=NULL,
yea=c(1,2,3),
nay=c(4,5,6),
missing=c(7,8,9),
notInLegis=0,
desc=NULL,
debug=FALSE)
dtl
file
(information about votes); default is NULL
, indicating no
dtl
filec(1,2,3)
, which corresponds to Yea,
Paired Yea, and Announced Yea in Poole/Rosenthal dc(4,5,6)
, which corresponds to
Announced Nay, Paired Nay, and Nay in Poole/RosenthNA
, possible a vector, code(s)
for missing data. Default is c(0,7,8,9,NA)
; the first four
codes correspond to Not Yet a Member, Present (some Congresses),
Present (some Congresses), and Not Voting.NA
, possibly a vector, code(s) for
the legislator not being in the legislature when a particular roll
call was recorded (e.g., deceased, retired, yet to be
elected). Default is 0
for Poole/Rosenthal data fi82nd U.S. House
of Representatives
; default is NULL
rollcall
, with components created
using the identifying information in the Poole/Rosenthal files. If
the function can not read the file (e.g., the user specified a URL and
the machine is not connected to the Internet), the function fails with
an error message (set debug=TRUE
to help resolve these issues).dtl
state
icpsrState
cd
icpsrLegis
partyName
party
This function relies on some hard-coded features of Poole-Rosenthal
flat files, and assumes that the file
being supplied has the following
structure (variable, start-end columns):
Poole, Keith.
Rosenthal, Howard L. and Keith T. Poole. United States Congressional
Roll Call Voting Records, 1789-1990: Reformatted Data [computer
file]. 2nd ICPSR release. Pittsburgh, PA: Howard L. Rosenthal and Keith
T. Poole, Carnegie Mellon University, Graduate School of Industrial
Administration [producers], 1991. Ann Arbor, MI: Inter-university
Consortium for Political and Social Research [distributor], 2000.
rollcall
h107 <- readKH("ftp://voteview.com/hou107kh.ord",
desc="107th U.S. House of Representatives")
s107 <- readKH("ftp://voteview.com/sen107kh.ord",
desc="107th U.S. Senate")
## Jeff Lewis has quasi-real-time roll call data on his site
## in the Poole/Rosenthal format
s109 <- readKH("http://adric.sscnet.ucla.edu/rollcall/static/S109.ord",
desc="109th U.S. Senate",
debug=TRUE)
Run the code above in your browser using DataLab