find.divisions {tapiR} | R Documentation |
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.
find.divisions(session, dates)
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. |
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.
A two-column character matrix.
Columns are debate
and URL
.
Rows are indexed by division identifiers.
David Firth
## Not run: myURLs <- find.divisions(0203, 030715:030716) myDivs <- get.divisions(myURLs) ## End(Not run)