stats19
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 2025. 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.
- Contraflows and cycling safety: Evidence from 22 years of data involving 508 one-way streets
- GLMcat: An R Package for Generalized Linear Models for Categorical Responses
- Multivariate Hierarchical Analysis of Car Crashes Data Considering a Spatial Network Lattice
- Socioeconomic inequalities in cycling safety: An analysis of cycling injury risk by residential deprivation level in England
- stats19: A package for working with open road crash data
This page was built for software: stats19