get_url: Convert file names to urls

Description Usage Arguments Details Examples

View source: R/utils.R

Description

Convert file names to urls

Usage

1
2
3
get_url(file_name = "",
  domain = "http://data.dft.gov.uk.s3.amazonaws.com",
  directory = "road-accidents-safety-data")

Arguments

file_name

Optional file name to add to the url returned (empty by default)

domain

The domain from where the data will be downloaded

directory

The subdirectory of the url

Details

This function returns urls that allow data to be downloaded from the pages:

http://data.dft.gov.uk/road-accidents-safety-data/road-accidents-safety-data/RoadSafetyData_2015.zip

http://data.dft.gov.uk.s3.amazonaws.com/road-accidents-safety-data/dftRoadSafety_Accidents_2016

Last updated: 22nd Nov 2018. Files available from the s3 url in the default domain argument.

Examples

1
# get_url(find_file_name(1985))

ITSLeeds/stats19 documentation built on May 4, 2019, 7:35 a.m.