summary.rollcall | R Documentation |
Provides a summary of the information about votes, legislators, etc in
a rollcall
object.
## S3 method for class 'rollcall'
summary(object,
dropList=NULL,
verbose=FALSE,debug=FALSE,...)
## S3 method for class 'summary.rollcall'
print(x, digits=1, ...)
object |
an |
dropList |
a |
verbose |
logical, if |
debug |
logical, if |
x |
an object of class |
digits |
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
):
n |
number of legislators in the |
m |
number of roll call votes in the |
codes |
a |
allVotes |
a matrix containing a tabular breakdown of all votes
in the |
partyTab |
a tabular breakdown of the legislators' party
affiliations, after processing the |
lopSided |
a tabular summary of the frequency of lop-sided roll
call votes in the |
legisTab |
a tabular summary of each legislators' voting history |
partyLoyalty |
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 |
voteTab |
a tabular summary of each rollcall's votes |
call |
the |
rollcall
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.