get_url: Convert file names to urls

View source: R/utils.R

get_urlR Documentation

Convert file names to urls

Description

Convert file names to urls

Usage

get_url(
  file_name = "",
  domain = "https://data.dft.gov.uk",
  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:

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

Last updated: October 2020. Files available from the s3 url in the default domain argument.

Examples

# get_url(find_file_name(1985))

stats19 documentation built on Nov. 5, 2023, 1:09 a.m.