convertURL: Convert URL

Description Usage Arguments Value Examples

Description

Converts a parliament.uk Hansard URL into a TheyWorkForYou one, if possible.

Usage

1

Arguments

url

url you want to convert

Value

A one row data.frame with columns gid and url.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 

site <- "http://www.publications.parliament.uk"
page <- "/pa/cm201212/cmhansrd/cm120418/debtext/120418-0001.htm"
in_page <- "#12041847002086"
address <- paste0(site, page, in_page)

res <- convertURL(address)
names(res) # gid, url

## End(Not run)

conjugateprior/twfy documentation built on May 11, 2019, 4:16 p.m.