convertURL {twfy} | R Documentation |
Convert URL
Description
Converts a parliament.uk Hansard URL into a TheyWorkForYou one, if possible.
Usage
convertURL(url)
Arguments
url |
url you want to convert |
Value
A one row data.frame with columns gid
and url
.
Examples
## 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)
[Package twfy version 0.1.0 Index]