| convertCodes | R Documentation |
Convert roll call matrix to binary form using encoding information.
convertCodes(object, codes = object$codes)
object |
|
codes |
list, mapping entries in the |
See rollcall for details on the form of the
codes list.
a matrix with dimensions equal to the dimensions of
the votes component of the rollcall object.
Any entries in the votes matrix that can
not be mapped into c(0,1,NA) using the information in
codes are mapped to NA, with an informative message
sent to the console.
Simon Jackman simon.jackman@sydney.edu.au
rollcall
data(s109)
mat <- convertCodes(s109)
table(mat,exclude=NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.