Format STATS19 vehicles data

format_vehicles(x)

Arguments

x

Data frame created with read_vehicles()

Details

This function formats raw STATS19 data

Examples

# \donttest{ dl_stats19(year = 2017, type = "vehicles", ask = FALSE)
#> Files identified: dftRoadSafetyData_Vehicles_2017.zip
#> http://data.dft.gov.uk.s3.amazonaws.com/road-accidents-safety-data/dftRoadSafetyData_Vehicles_2017.zip
#> Attempt downloading from:
#> Data saved at /tmp/RtmpZKiceE/dftRoadSafetyData_Vehicles_2017/Veh.csv
x = read_vehicles(year = 2017, format = FALSE) vehicles = format_vehicles(x) # }