stats19: Work with Open Road Traffic Casualty Data from Great Britain

Work with and download road traffic casualty data from Great Britain. Enables access to the UK's official road safety statistics, 'STATS19'. Enables users to specify a download directory for the data, which can be set permanently by adding `STATS19_DOWNLOAD_DIRECTORY=/path/to/a/dir` to your `.Renviron` file, which can be opened with `usethis::edit_r_environ()`. The data is provided as a series of `.csv` files. This package downloads, reads-in and formats the data, making it suitable for analysis. See the stats19 vignette for details. Data available from 1979 to 2024. See the official data series at <https://www.data.gov.uk/dataset/cb7ae6f0-4be6-4935-9277-47e5ce24a11f/road-accidents-safety-data>. The package is described in a paper in the Journal of Open Source Software (Lovelace et al. 2019) <doi:10.21105/joss.01181>. See Gilardi et al. (2022) <doi:10.1111/rssa.12823>, Vidal-Tortosa et al. (2021) <doi:10.1016/j.jth.2021.101291>, Tait et al. (2023) <doi:10.1016/j.aap.2022.106895>, and León et al. (2025) <doi:10.18637/jss.v114.i09> for examples of how the data can be used for methodological and empirical research.

Package details

AuthorRobin Lovelace [aut, cre] (ORCID: <https://orcid.org/0000-0001-5679-6536>), Malcolm Morgan [aut] (ORCID: <https://orcid.org/0000-0002-9488-9183>), Layik Hama [aut] (ORCID: <https://orcid.org/0000-0003-1912-4890>), Mark Padgham [aut] (ORCID: <https://orcid.org/0000-0003-2172-5265>), David Ranzolin [rev], Adam Sparks [rev, ctb] (ORCID: <https://orcid.org/0000-0002-0061-8359>), Ivo Wengraf [ctb], RAC Foundation [fnd], Blaise Kelly [aut] (ORCID: <https://orcid.org/0000-0003-2623-1598>)
MaintainerRobin Lovelace <rob00x@gmail.com>
LicenseGPL-3
Version4.0.0
URL https://github.com/ropensci/stats19 https://docs.ropensci.org/stats19/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("stats19")

Try the stats19 package in your browser

Any scripts or data that you put into this service are public.

stats19 documentation built on March 18, 2026, 5:08 p.m.