find.divisions {tapiR}R Documentation

Locate division lists for the UK House of Commons

Description

Searches the online parliamentary record, Hansard, for the URLs of pages containing division lists. For each division found, returns the URL and Hansard's textual tag indicating the topic under debate.

Usage

find.divisions(session, dates)

Arguments

session A 4-digit identifier for the parliamentary session to be searched, e.g., 0203 for the year 2002-3.
dates A numeric vector of dates in the format yymmdd. Ranges may be specified, e.g., 030515:030716 for the period May 15 to July 16 2003.

Details

Requires internet access. Expect to see a lot of "404 not found" in the commentary, because find.divisions will usually try some non-existent URLs; this is of no consequence.

Value

A two-column character matrix. Columns are debate and URL. Rows are indexed by division identifiers.

Author(s)

David Firth

See Also

get.divisions

Examples

## Not run: 
myURLs <- find.divisions(0203, 030715:030716)
myDivs <- get.divisions(myURLs)
## End(Not run)

[Package tapiR version 0.7-5 Index]