lords_divisions: lords_divisions

Description Usage Arguments Examples

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

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)


Search within the hansard package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.