Provides a summary of the information about votes, legislators, etc in
a rollcall
object.
# S3 method for rollcall
summary(object,
dropList=NULL,
verbose=FALSE,debug=FALSE,...)# S3 method for summary.rollcall
print(x, digits=1, ...)
an rollcall
object.
a list
or alist
, listing voting
decisions, legislators and/or votes to be dropped
from the summary; see dropRollCall
for details.
logical, if TRUE
, compute legislator-specific
and vote-specific Yea/Nay/NA
summaries
logical, if TRUE
, print messages to console during
processing of the rollcall
object
an object of class summary.rollcall
number of decimal places in printed display
further arguments passed to or from other methods.
An object of class summary.rollcall
with the following elements
(depending on the logical flag verbose
):
number of legislators in the rollcall
object,
after processing the dropList
number of roll call votes in the rollcall
object, after processing the dropList
a list
that describes how the voting
decisions in the rollcall
matrix (object$votes
)
map into “Yea” and “Nay” etc, after processing the
dropList
; see rollcall
for more details
a matrix containing a tabular breakdown of all votes
in the rollcall
matrix (object$votes
), after
processing the dropList
a tabular breakdown of the legislators' party
affiliations, after processing the dropList
, and only if
party affiliations are supplied asobject$legis.data$party
;
see rollcall
for details
a tabular summary of the frequency of lop-sided roll
call votes in the rollcall
object, again, after
processing the dropList
a tabular summary of each legislators' voting history
the proportion of times that each legislator votes the way that a majority of his or her fellow partisans did, provided party affiliations are available
a tabular summary of each rollcall's votes
the matched call
used to invoke
summary.rollcall
# NOT RUN {
set.seed(314159265)
fakeData <- matrix(sample(x=c(0,1),size=1000,replace=TRUE),
10,100)
rc <- rollcall(fakeData)
rc
data(sc9497)
rc <- rollcall(sc9497)
summary(rc)
data(s109)
summary(s109)
summary(s109,verbose=TRUE)
# }
Run the code above in your browser using DataLab