Package: stats19 4.0.0

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.
Authors:
stats19_4.0.0.tar.gz
stats19_4.0.0.zip(r-4.7)stats19_4.0.0.zip(r-4.6)stats19_4.0.0.zip(r-4.5)
stats19_4.0.0.tgz(r-4.6-any)stats19_4.0.0.tgz(r-4.5-any)
stats19_4.0.0.tar.gz(r-4.7-any)stats19_4.0.0.tar.gz(r-4.6-any)
stats19_4.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
stats19/json (API)
| # Install 'stats19' in R: |
| install.packages('stats19', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org')) |
Reviews:rOpenSci Software Review #266
Bug tracker:https://github.com/ropensci/stats19/issues
Pkgdown/docs site:https://docs.ropensci.org
- accidents_sample - Sample of stats19 data
- accidents_sample_raw - Sample of stats19 data
- casualties_sample - Sample of stats19 data
- casualties_sample_raw - Sample of stats19 data
- file_names - Stats19 file names for easy access
- file_names_old - Stats19 file names for easy access
- police_boundaries - Police force boundaries in England
- schema_original - Schema for stats19 data
- stats19_schema - Stats19 schema and variables
- stats19_variables - Stats19 schema and variables
- vehicles_sample - Sample of stats19 data
- vehicles_sample_raw - Sample of stats19 data
stats19road-safetytransportcar-crashesropenscidata
Last updated from:a55e33f795 (on master). Checks:10 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 174 | ||
| pkgdown docs | OK | 365 | ||
| source / vignettes | OK | 257 | ||
| linux-release-x86_64 | OK | 167 | ||
| macos-release-arm64 | OK | 142 | ||
| macos-oldrel-arm64 | OK | 125 | ||
| windows-devel | OK | 138 | ||
| windows-release | OK | 132 | ||
| windows-oldrel | OK | 123 | ||
| wasm-release | OK | 156 |
Exports:clean_makeclean_make_modelclean_modeldl_stats19extract_make_stats19find_file_nameformat_casualtiesformat_collisionsformat_column_namesformat_pppformat_sfformat_vehiclesget_data_directoryget_MOTget_stats19get_stats19_adjustmentsget_ULEZget_urllocate_fileslocate_one_filematch_tagread_casualtiesread_collisionsread_vehiclesselect_fileset_data_directory
Dependencies:bitbit64classclassIntclicliprcpp11crayoncurlDBIdplyre1071genericsgluehmsjsonliteKernSmoothlifecyclelubridatemagrittrMASSpillarpkgconfigprettyunitsprogressproxyR6Rcppreadrrlangs2sftibbletidyselecttimechangetzdbunitsutf8vctrsvroomwithrwk
Last update: 2026-03-18
Started: 2026-03-18
Last update: 2026-03-18
Started: 2019-10-04
Last update: 2026-03-08
Started: 2026-03-08
Last update: 2025-10-17
Started: 2025-10-17
Last update: 2025-10-16
Started: 2019-02-15
Last update: 2025-10-08
Started: 2025-10-08
Last update: 2025-10-08
Started: 2018-11-28
Last update: 2025-01-13
Started: 2019-10-03
Last update: 2024-10-28
Started: 2019-08-20
