make.votesheet {tapiR}R Documentation

Make a Rectangular Dataset from House of Commons Division Data

Description

Takes one or more House of Commons division lists and records the votes in a data frame with one row for each MP and one column for each division.

Usage

make.votesheet(divs, MPnames, verbose = TRUE)

Arguments

divs A list, with one component for each division. Each division is itself a list, with three components url, ayes and noes.
MPnames A data frame of unique MP names, seatnames and parties.
verbose Logical. If TRUE, progress is reported on standard output.

Value

A data frame. See Votes0105 for the format.

Author(s)

David Firth

References

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.

See Also

write.votesheet

Examples

data(Divs0105)
data(MPnames0105)
##  Do the first three divisions in June 2001:
make.votesheet(Divs0105[1:3], MPnames0105)

[Package tapiR version 0.7-2 Index]