powered by
See the DfT's documentation on adjustment factors Annex: Update to severity adjustments methodology.
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" )
Where sets of downloaded data would be found.
The URL of the zip file with adjustments to download
The file name of the .csv file in the unzipped folder to read in
The folder name where R will look for the unzipped adjustment files
See Estimating and adjusting for changes in the method of severity reporting for road accidents and casualty data: final report for details.
# \donttest{ if(curl::has_internet()) { adjustment = get_stats19_adjustments() } # }
Run the code above in your browser using DataLab