Learn R Programming

hansard (version 0.3.4)

lords_divisions: lords_divisions

Description

Imports data on House of Lords divisions #' @param type The type of data you want, allows the arguments 'all', 'date', 'notContent', 'content' and 'session'

Usage

lords_divisions(lordsDivType = c("all", "date", "notContent", "content", "session"))

Arguments

lordsDivType
Accepts arguments 'all', 'date', 'notContent' and 'content'
all
Returns a data frame with all available divisions in the House of Lords.
date
Requests a date, and then returns a data frame with all divisions on that date.
notContent
Requests a member ID, and then returns a data frame with all divisions in which they have voted not content.
content
Requests a member ID, and then returns a data frame with all divisions in which they have voted content.
session
Requests a session in yyyy/yy format (e.g. 2016/17) and returns a data frame with all House of Lords divisions in that session.

Examples

Run this code
## Not run: 
# x <- lords_divisions('all')
# 
# x <- lords_divisions('date')
# 
# x <- lords_divisions('notContent')
# 
# x <- lords_divisions('content')
# 
# x <- lords_divisions('session')
# ## End(Not run)

Run the code above in your browser using DataLab