vectorRepresentation(object, dropList = list(codes = c("missing", "notInLegis")))
rollcall
dropList
; see dropRollCall
matrix
with z
rows, where z
is the
number of non-missing entries in object$votes
, with
codes
component of the
dropList
. The matrix has 3 columns:1
if the
corresponding element of the roll call matrix object$votes
is in the yea
component of object$codes
, or a 0
if the corresponding element of the roll call matrix is in the
nay
component of object$codes
. Non-missing entries of
the roll call matrix are not stored.object$votes
that
supplied the voting decision; i.e., a unique identifier for the
legislator generating this vote
object$votes
that
supplied the vote
; i.e., a unique identifier for the vote.rollcall
data(s109)
y <- vectorRepresentation(s109)
apply(y,2,table,exclude=NULL)
Run the code above in your browser using DataLab