Freedom251 › Statistical Analysis Software
stats19

What stats19 is
stats19 is a free R package for downloading and preparing Great Britain’s official road traffic casualty data. Its get_stats19() function can download, read, and format data by year and table type in one workflow. The package organizes results into collisions, casualties, and vehicles tables, while separate functions support downloading files or handling each table independently. Project information lists coverage from 1979 to 2025. Collision records can be converted to the geographic format used by the sf package, with rows lacking coordinates removed during conversion. Documentation demonstrates combining the data with sf and dplyr for geographic work and joins, and with ggplot2 and leaflet for maps. Uses described include road safety research, mapping, and time series analysis. The package is aimed at academics, policy makers, road safety campaigners, and R programmers or analysts. Installation instructions cover GitHub and CRAN, and R 4.1.0 or newer is required. STATS19 excludes crashes where nobody was hurt. The data uses the Open Government Licence v3.0, while the package is GPL-3 licensed. Bug reports go to GitHub issues.
Who it suits
stats19 suits researchers, policy makers, road safety campaigners, and R analysts working with Great Britain casualty data. It is useful for mapping, geographic analysis, and time series work.
What it does well
- Downloads and formats STATS19 data
- Separate collision, casualty, and vehicle tables
- Converts collisions for sf
- Works with mapping packages
- Free package with GitHub and CRAN installation
What to know first
- Requires R 4.1.0 or newer
- STATS19 excludes uninjured crashes
- Rows without coordinates are removed for sf conversion
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| stats19 R package | No paid plans listed · Requires R ≥ 4.1.0 | Free |
As docs.ropensci.org lists them, read 12 Oct 2026. The maker's own page has the final word.
Verdict
stats19 provides a structured R workflow for downloading, preparing, and analyzing Great Britain road casualty data. Its geographic and mapping integrations are useful, but analysts must account for the dataset’s injury and coordinate limits.
Facts from stats19's own pages
- Combined workflow
- The get_stats19() function downloads, reads, and formats STATS19 data in one step. · docs.ropensci.org, 12 Oct 2026
- Data coverage
- The project DESCRIPTION says data is available from 1979 to 2025. · github.com, 12 Oct 2026
- Data import formats
- CSV files from UK STATS19 datasets · docs.ropensci.org, 23 Sept 2026
- Data licence
- The documentation says the data is provided under the Open Government Licence v3.0 and asks users to cite and link to its source. · docs.ropensci.org, 12 Oct 2026
- Data license
- The documentation says the data is provided under the Open Government Licence version 3.0. · docs.ropensci.org, 12 Oct 2026
- Data tables
- The data is organized into collisions, casualties, and vehicles tables. · docs.ropensci.org, 12 Oct 2026
- Deployment
- desktop · docs.ropensci.org, 23 Sept 2026
- Download and formatting
- The get_stats19() function downloads and formats data by year and table type, while separate functions can download or read the tables. · docs.ropensci.org, 12 Oct 2026
- Free plan
- Yes · docs.ropensci.org, 23 Sept 2026
- Geographic data
- The package can convert collision data into the geographic data form used by the sf package. · docs.ropensci.org, 12 Oct 2026
- Installation
- The docs provide installation instructions for the package from GitHub and CRAN. · docs.ropensci.org, 12 Oct 2026
- Integrations
- The documentation demonstrates using stats19 data with sf and dplyr for geographic operations and joins. · docs.ropensci.org, 12 Oct 2026
- Intended users
- The project article identifies academics, policy makers, road safety campaigners, and R programmers or analysts as target audiences. · docs.ropensci.org, 12 Oct 2026
- License
- The package is licensed under GPL-3. · cran.r-project.org, 12 Oct 2026
- Mapping
- The documentation demonstrates mapping crash data with ggplot2 and leaflet. · docs.ropensci.org, 12 Oct 2026
- Notable data limit
- The project article states that STATS19 omits crashes in which nobody was hurt. · docs.ropensci.org, 12 Oct 2026
- Publication
- The package documentation says stats19 has been peer reviewed and published in the Journal of Open Source Software. · docs.ropensci.org, 12 Oct 2026
- Purpose
- stats19 provides functions for downloading and formatting Great Britain’s official road traffic casualty data. · docs.ropensci.org, 12 Oct 2026
- Research use
- The documentation describes using the data for road safety research, mapping, and time series analysis. · docs.ropensci.org, 12 Oct 2026
- Review
- The project documentation says the package has been peer reviewed and published in the Journal of Open Source Software. · docs.ropensci.org, 12 Oct 2026
- Scripting support
- Yes · docs.ropensci.org, 23 Sept 2026
- Separate workflow
- Users can download files or read collision, casualty, and vehicle data separately. · docs.ropensci.org, 12 Oct 2026
- Spatial data
- The package can convert collision data into sf geographic data, and rows without coordinates are removed during conversion. · docs.ropensci.org, 12 Oct 2026
- Support
- The package page directs bug reports to its GitHub issues tracker. · cran.r-project.org, 12 Oct 2026
Where stats19 stands on Freedom251
- Statistical Analysis Software#43 of 106