Learn R Programming

hansard (version 0.3.4)

lords_vote_record: lords_vote_record

Description

Accepts an ID number for a member of the House of Lords, and returns a data frame of their votes. Provides similar functionality to the lords_divisions() function, but accepts member IDs as function parameters rather than requesting them from the console.

Usage

lords_vote_record(lord.id, lordsRecord = c("all", "content", "notContent"))

Arguments

lord.id
The ID number of a member of the House of Lords. To look up the ID number of a member of the House of Lords use the members_search() function.
lordsRecord
Accepts the arguments 'all', 'content' and 'notContent'. Defaults to 'all'.
all
Returns a data frame with all recorded votes for a given member of the house of lords.
content
Returns a data frame with all divisions where a given lord voted aye.
notContent
Returns a data frame with all divisions where a given lord voted no.

Examples

Run this code
## Not run: 
# x <- lords_vote_record(172, 'all')
# ## End(Not run)

Run the code above in your browser using DataLab