Convert file names to urls

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

# get_url(find_file_name(1985))