Learn R Programming

stats19 (version 2.0.1)

get_stats19_adjustments: Download and read-in severity adjustment factors

Description

See the DfT's documentation on adjustment factors Annex: Update to severity adjustments methodology.

Usage

get_stats19_adjustments(
  data_dir = get_data_directory(),
  u = paste0("https://data.dft.gov.uk/road-accidents-safety-data/",
    "accident-and-casualty-adjustment-2004-to-2019.zip"),
  filename = "cas_adjustment_lookup_2019.csv",
  adj_folder = "adjustment-data"
)

Arguments

data_dir

Where sets of downloaded data would be found.

u

The URL of the zip file with adjustments to download

filename

The file name of the .csv file in the unzipped folder to read in

adj_folder

The folder name where R will look for the unzipped adjustment files

Details

See Estimating and adjusting for changes in the method of severity reporting for road accidents and casualty data: final report for details.

Examples

Run this code
# \donttest{
if(curl::has_internet()) {
adjustment = get_stats19_adjustments()
}
# }

Run the code above in your browser using DataLab