Skip to contents

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/",
    "dft-road-casualty-statistics-casualty-adjustment-lookup_",
    "2004-latest-published-year.csv")
)

Arguments

data_dir

Where sets of downloaded data would be found.

u

The URL of the zip file with adjustments to download

Examples

# \donttest{
if(curl::has_internet()) {
adjustment = get_stats19_adjustments()
}
#> Rows: 3689281 Columns: 7
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): accident_index
#> dbl (6): Vehicle_Reference, Casualty_Reference, Adjusted_Serious, Adjusted_S...
#> 
#>  Use `spec()` to retrieve the full column specification for this data.
#>  Specify the column types or set `show_col_types = FALSE` to quiet this message.
# }