# Work with Open Road Traffic Casualty Data from Great Britain

## Documentation for package ‘stats19’ version 1.2.0

- DESCRIPTION file.
- User guides, package vignettes and other documentation.

## Help Pages

accidents_sample | Sample of stats19 data (2017 accidents)
accidents_sample_raw | Sample of stats19 data (2017 accidents)
casualties_sample | Sample of stats19 data (2017 casualties)
casualties_sample_raw | Sample of stats19 data (2017 casualties)
check_input_file | Local helper to be reused.
check_year | check and convert year argument
dl_stats19 | Download STATS19 data for a year or range of two years.
file_names | stats19 file names for easy access
file_names_old | stats19 file names for easy access
find_file_name | Find file names within stats19::file_names.
format_accidents | Format STATS19 'accidents' data
format_casualties | Format STATS19 casualties
format_column_names | Format column names of raw STATS19 data
format_ppp | Convert STATS19 data into ppp (spatstat) format.
format_sf | Format convert STATS19 data into spatial (sf) object
format_vehicles | Format STATS19 vehicles data
get_data_directory | Get data download dir
get_MOT | Download vehicle data from the DVSA MOT API using VRM.
get_stats19 | Download, read and format STATS19 data in one function.
get_url | Convert file names to urls
locate_files | Locate a file on disk
locate_one_file | Pin down a file on disk from four parameters.
phrase | Generate a phrase for data download purposes
police_boundaries | Police force boundaries in England (2016)
read_accidents | Read in STATS19 road safety data from .csv files downloaded.
read_casualties | Read in STATS19 road safety data from .csv files downloaded.
read_vehicles | Read in stats19 road safety data from .csv files downloaded.
schema_original | Schema for stats19 data (UKDS)
select_file | Interactively select from options
set_data_directory | Set data download dir
stats19_schema | Stats19 schema and variables
stats19_variables | Stats19 schema and variables
vehicles_sample | Sample of stats19 data (2017 vehicles)
vehicles_sample_raw | Sample of stats19 data (2017 vehicles)