write.votesheet {tapiR} | R Documentation |
Writes out a data frame of House of Commons voting data, either to a text file or to standard output.
write.votesheet(x, file = NULL, keep.b = TRUE, aye = "y", no = "n", novote = "-")
x |
A data frame of the kind made by
make.votesheet |
file |
An optional file name for the printed representation.
If NULL , printing is to standard output. |
keep.b |
Should instances of b in the voting data,
meaning that an MP was recorded as having voted both Aye and No,
be retained in the output? If FALSE , then b is
converted everywhere to - . |
aye |
A one-character code for an Aye vote. |
no |
A one-character code for a No vote. |
novote |
A one-character code for neither Aye nor No (i.e., a vote was not recorded) |
invisible(NULL)
Codes used as input to Keith Poole's OC (optimal classification) program are
aye = "1", no = "6", novote = "0"
David Firth
Firth, D and Spirling, A (2003) Divisions of the United Kingdom House of Commons, from 1992 to 2003 and beyond. Submitted for publication. At http://www.warwick.ac.uk/go/tapir.
data(Votes0105) write.votesheet(Votes0105[1:10, 1:10])