get.divisions {tapiR}R Documentation

Fetch House of Commons Division Lists from a File or from the Web

Description

Visits a list of URLs and extracts division lists in the standard format used by Hansard online.

Usage

get.divisions(URLs)

Arguments

URLs A character vector of URLs (uniform resource locators). These may be local files or Hansard web pages.

Details

A single URL may point to a file or page containing more than one division list.

Value

A list, with one component for each division list found. For the format see Divs0104.

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.

Examples

## Not run: 
##  Get the first two divisions for the session starting in June 2001:
myURLs <- c(
"http://www.parliament.the-stationery-office.co.uk/pa/cm200102/cmhansrd/vo010626/debtext/10626-30.htm", 
"http://www.parliament.the-stationery-office.co.uk/pa/cm200102/cmhansrd/vo010627/debtext/10627-29.htm")
first.two.divs <- get.divisions(myURLs)
## End(Not run)

[Package tapiR version 0.6-3 Index]