{
  "_id": "69ae063bd21b72a447ae8ffb",
  "Package": "stats19",
  "Title": "Work with Open Road Traffic Casualty Data from Great Britain",
  "Version": "4.0.0",
  "Authors@R": "c(\nperson(\"Robin\", \"Lovelace\", email = \"rob00x@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-5679-6536\")),\nperson(\"Malcolm\", \"Morgan\", email = \"m.morgan1@leeds.ac.uk\", role = c(\"aut\"),\ncomment = c(ORCID = \"0000-0002-9488-9183\")),\nperson(\"Layik\", \"Hama\", email = \"layik.hama@gmail.com\", role = c(\"aut\"),\ncomment = c(ORCID = \"0000-0003-1912-4890\")),\nperson(\"Mark\", \"Padgham\", role=c(\"aut\"),\ncomment = c(ORCID = \"0000-0003-2172-5265\")),\nperson(\"David\", \"Ranzolin\", role=c(\"rev\")),\nperson(\"Adam\", \"Sparks\", role = c(\"rev\", \"ctb\"),\ncomment = c(ORCID = \"0000-0002-0061-8359\")),\nperson(\"Ivo\", \"Wengraf\", role = c(\"ctb\")),\nperson(given = \"RAC Foundation\", role = c(\"fnd\")),\nperson(\"Blaise\", \"Kelly\", email = \"blaise@kello.co.uk\", role = c(\"aut\"),\ncomment = c(ORCID = \"0000-0003-2623-1598\"))\n)",
  "Description": "Work with and download road traffic casualty data from\nGreat Britain. Enables access to the UK's official road safety\nstatistics, 'STATS19'. Enables users to specify a download\ndirectory for the data, which can be set permanently by adding\n`STATS19_DOWNLOAD_DIRECTORY=/path/to/a/dir` to your `.Renviron`\nfile, which can be opened with `usethis::edit_r_environ()`. The\ndata is provided as a series of `.csv` files. This package\ndownloads, reads-in and formats the data, making it suitable\nfor analysis. See the stats19 vignette for details. Data\navailable from 1979 to 2024. See the official data series at\n<https://www.data.gov.uk/dataset/cb7ae6f0-4be6-4935-9277-47e5ce24a11f/road-accidents-safety-data>.\nThe package is described in a paper in the Journal of Open\nSource Software (Lovelace et al. 2019)\n<doi:10.21105/joss.01181>. See Gilardi et al. (2022)\n<doi:10.1111/rssa.12823>, Vidal-Tortosa et al. (2021)\n<doi:10.1016/j.jth.2021.101291>, Tait et al. (2023)\n<doi:10.1016/j.aap.2022.106895>, and León et al. (2025)\n<doi:10.18637/jss.v114.i09> for examples of how the data can be\nused for methodological and empirical research.",
  "License": "GPL-3",
  "URL": "https://github.com/ropensci/stats19,\nhttps://docs.ropensci.org/stats19/",
  "BugReports": "https://github.com/ropensci/stats19/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "Language": "en-US",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibssl-dev libproj-dev libsqlite3-dev libudunits2-dev\nlibx11-dev",
  "Repository": "https://ropensci.r-universe.dev",
  "Date/Publication": "2026-03-08 23:08:47 UTC",
  "RemoteUrl": "https://github.com/ropensci/stats19",
  "RemoteRef": "master",
  "RemoteSha": "18c2d897d284b577aa09fc6075dc6b126106ba05",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-03-08 23:25:22 UTC",
    "User": "root"
  },
  "Author": "Robin Lovelace [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-5679-6536>),\nMalcolm Morgan [aut] (ORCID: <https://orcid.org/0000-0002-9488-9183>),\nLayik Hama [aut] (ORCID: <https://orcid.org/0000-0003-1912-4890>),\nMark Padgham [aut] (ORCID: <https://orcid.org/0000-0003-2172-5265>),\nDavid Ranzolin [rev],\nAdam Sparks [rev, ctb] (ORCID: <https://orcid.org/0000-0002-0061-8359>),\nIvo Wengraf [ctb],\nRAC Foundation [fnd],\nBlaise Kelly [aut] (ORCID: <https://orcid.org/0000-0003-2623-1598>)",
  "Maintainer": "Robin Lovelace <rob00x@gmail.com>",
  "MD5sum": "1805baf4483c6b6cbf00e55c71617ffa",
  "_user": "ropensci",
  "_type": "src",
  "_file": "stats19_4.0.0.tar.gz",
  "_fileid": "b76d1064cfddb55a6d600b043faf878003b69c695dd043936be66174d16ddf9b",
  "_filesize": 3797074,
  "_sha256": "b76d1064cfddb55a6d600b043faf878003b69c695dd043936be66174d16ddf9b",
  "_created": "2026-03-08T23:25:22.000Z",
  "_published": "2026-03-09T08:40:34.181Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 66222453705,
      "time": 180,
      "config": "linux-devel-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "5821093196"
    },
    {
      "job": 66222453714,
      "time": 176,
      "config": "linux-release-x86_64",
      "r": "4.5.2",
      "check": "NOTE",
      "artifact": "5821092867"
    },
    {
      "job": 66222453707,
      "time": 129,
      "config": "macos-devel-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "5821088901"
    },
    {
      "job": 66222453712,
      "time": 83,
      "config": "macos-release-arm64",
      "r": "4.5.2",
      "check": "NOTE",
      "artifact": "5821085128"
    },
    {
      "job": 66222250489,
      "time": 386,
      "config": "pkgdown",
      "r": "4.5.2",
      "check": "OK",
      "artifact": "5821085364"
    },
    {
      "job": 66222250490,
      "time": 295,
      "config": "source",
      "r": "4.5.2",
      "check": "OK",
      "artifact": "5821078201"
    },
    {
      "job": 66222453704,
      "time": 165,
      "config": "wasm-release",
      "r": "4.5.1",
      "check": "OK",
      "artifact": "5821091912"
    },
    {
      "job": 66222453718,
      "time": 121,
      "config": "windows-devel",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "5821088282"
    },
    {
      "job": 66222453713,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.4.3",
      "check": "NOTE",
      "artifact": "5821086419"
    },
    {
      "job": 66222453708,
      "time": 96,
      "config": "windows-release",
      "r": "4.5.2",
      "check": "NOTE",
      "artifact": "5821086236"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ropensci/actions/runs/22832220235",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ropensci/stats19",
  "_commit": {
    "id": "18c2d897d284b577aa09fc6075dc6b126106ba05",
    "author": "robinlovelace <rob00x@gmail.com>",
    "committer": "robinlovelace <rob00x@gmail.com>",
    "message": "Update R dependency to >= 4.1.0 due to native pipe usage\n",
    "time": 1773011327
  },
  "_maintainer": {
    "name": "Robin Lovelace",
    "email": "rob00x@gmail.com",
    "login": "robinlovelace",
    "mastodon": "@robinlovelace@fosstodon.org",
    "bluesky": "@robinlovelace.bsky.social",
    "linkedin": "in/robin-lovelace-20751a34",
    "orcid": "0000-0001-5679-6536",
    "twitter": "@robinlovelace",
    "uuid": 1825120
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "curl",
      "version": ">= 3.2",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "stringr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "tidyselect",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "leaflet",
      "role": "Suggests"
    },
    {
      "package": "geojsonsf",
      "role": "Suggests"
    },
    {
      "package": "htmltools",
      "role": "Suggests"
    },
    {
      "package": "tmap",
      "role": "Suggests"
    },
    {
      "package": "spatstat.geom",
      "role": "Suggests"
    },
    {
      "package": "osmdata",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "readODS",
      "role": "Suggests"
    },
    {
      "package": "gt",
      "role": "Suggests"
    },
    {
      "package": "clock",
      "role": "Suggests"
    }
  ],
  "_owner": "ropensci",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-40",
      "n": 4
    },
    {
      "week": "2025-41",
      "n": 6
    },
    {
      "week": "2025-42",
      "n": 3
    },
    {
      "week": "2025-49",
      "n": 3
    },
    {
      "week": "2025-50",
      "n": 2
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-04",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-10",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v3.4.0",
      "date": "2025-10-08"
    }
  ],
  "_topics": [
    "stats19",
    "road-safety",
    "transport",
    "car-crashes",
    "ropensci",
    "data"
  ],
  "_stars": 68,
  "_contributors": [
    {
      "user": "robinlovelace",
      "count": 673,
      "uuid": 1825120
    },
    {
      "user": "layik",
      "count": 168,
      "uuid": 408568
    },
    {
      "user": "blaisekelly",
      "count": 54,
      "uuid": 40754415
    },
    {
      "user": "agila5",
      "count": 34,
      "uuid": 22221146
    },
    {
      "user": "mpadge",
      "count": 15,
      "uuid": 6697851
    },
    {
      "user": "wengraf",
      "count": 14,
      "uuid": 13015856
    },
    {
      "user": "adamhsparks",
      "count": 2,
      "uuid": 3195906
    },
    {
      "user": "elifclaus",
      "count": 2,
      "uuid": 262484289
    },
    {
      "user": "jeroen",
      "count": 2,
      "uuid": 216319
    },
    {
      "user": "mem48",
      "count": 2,
      "uuid": 15819577
    },
    {
      "user": "mhkeller",
      "count": 2,
      "uuid": 498744
    },
    {
      "user": "cmcaine",
      "count": 1,
      "uuid": 6000761
    },
    {
      "user": "jimuttley",
      "count": 1,
      "uuid": 43413712
    },
    {
      "user": "meganstodel",
      "count": 1,
      "uuid": 16051791
    },
    {
      "user": "joeytalbot",
      "count": 1,
      "uuid": 52210872
    }
  ],
  "_userbio": {
    "uuid": 1200269,
    "type": "organization",
    "name": "rOpenSci",
    "description": "Tools and R Packages for Open Science"
  },
  "_downloads": {
    "count": 712,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/stats19"
  },
  "_devurl": "https://github.com/ropensci/stats19",
  "_pkgdown": "https://docs.ropensci.org/stats19",
  "_searchresults": 232,
  "_metadata": {
    "review": {
      "id": 266,
      "status": "reviewed",
      "version": "0.1.0.9000",
      "organization": "rOpenSci Software Review",
      "url": "https://github.com/ropensci/software-review/issues/266"
    },
    "ropensci_category": "data-access"
  },
  "_rbuild": "4.5.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/stats19.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ropensci/stats19",
  "_realowner": "ropensci",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2019-01-17"
    },
    {
      "version": "0.2.0",
      "date": "2019-02-15"
    },
    {
      "version": "0.2.1",
      "date": "2019-04-08"
    },
    {
      "version": "1.0.0",
      "date": "2019-07-28"
    },
    {
      "version": "1.1.0",
      "date": "2019-10-16"
    },
    {
      "version": "1.2.0",
      "date": "2020-03-03"
    },
    {
      "version": "1.3.0",
      "date": "2020-10-01"
    },
    {
      "version": "1.4.0",
      "date": "2021-03-15"
    },
    {
      "version": "1.4.1",
      "date": "2021-03-28"
    },
    {
      "version": "1.4.3",
      "date": "2021-07-21"
    },
    {
      "version": "2.0.0",
      "date": "2021-10-29"
    },
    {
      "version": "2.0.1",
      "date": "2022-11-17"
    },
    {
      "version": "3.0.0",
      "date": "2023-10-12"
    },
    {
      "version": "3.0.2",
      "date": "2023-11-05"
    },
    {
      "version": "3.0.3",
      "date": "2024-02-09"
    },
    {
      "version": "3.1.0",
      "date": "2024-08-01"
    },
    {
      "version": "3.2.0",
      "date": "2024-10-24"
    },
    {
      "version": "3.3.0",
      "date": "2025-01-13"
    },
    {
      "version": "3.3.1",
      "date": "2025-01-17"
    },
    {
      "version": "3.4.0",
      "date": "2025-10-09"
    }
  ],
  "_exports": [
    "clean_make",
    "clean_make_model",
    "clean_model",
    "dl_stats19",
    "extract_make_stats19",
    "find_file_name",
    "format_casualties",
    "format_collisions",
    "format_column_names",
    "format_ppp",
    "format_sf",
    "format_vehicles",
    "get_data_directory",
    "get_MOT",
    "get_stats19",
    "get_stats19_adjustments",
    "get_ULEZ",
    "locate_one_file",
    "match_tag",
    "read_casualties",
    "read_collisions",
    "read_vehicles"
  ],
  "_datasets": [
    {
      "name": "accidents_sample",
      "title": "Sample of stats19 data (2022 collisions)",
      "object": "accidents_sample",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "accident_index",
        "accident_year",
        "accident_reference",
        "location_easting_osgr",
        "location_northing_osgr",
        "longitude",
        "latitude",
        "police_force",
        "accident_severity",
        "number_of_vehicles",
        "number_of_casualties",
        "date",
        "day_of_week",
        "time",
        "local_authority_district",
        "local_authority_ons_district",
        "local_authority_highway",
        "first_road_class",
        "first_road_number",
        "road_type",
        "speed_limit",
        "junction_detail",
        "junction_control",
        "second_road_class",
        "second_road_number",
        "pedestrian_crossing_human_control",
        "pedestrian_crossing_physical_facilities",
        "light_conditions",
        "weather_conditions",
        "road_surface_conditions",
        "special_conditions_at_site",
        "carriageway_hazards",
        "urban_or_rural_area",
        "did_police_officer_attend_scene_of_accident",
        "trunk_road_flag",
        "lsoa_of_accident_location",
        "enhanced_severity_collision"
      ],
      "rows": 3,
      "table": true,
      "tojson": true
    },
    {
      "name": "accidents_sample_raw",
      "title": "Sample of stats19 data (2022 collisions)",
      "object": "accidents_sample_raw",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "accident_index",
        "accident_year",
        "accident_reference",
        "location_easting_osgr",
        "location_northing_osgr",
        "longitude",
        "latitude",
        "police_force",
        "accident_severity",
        "number_of_vehicles",
        "number_of_casualties",
        "date",
        "day_of_week",
        "time",
        "local_authority_district",
        "local_authority_ons_district",
        "local_authority_highway",
        "first_road_class",
        "first_road_number",
        "road_type",
        "speed_limit",
        "junction_detail",
        "junction_control",
        "second_road_class",
        "second_road_number",
        "pedestrian_crossing_human_control",
        "pedestrian_crossing_physical_facilities",
        "light_conditions",
        "weather_conditions",
        "road_surface_conditions",
        "special_conditions_at_site",
        "carriageway_hazards",
        "urban_or_rural_area",
        "did_police_officer_attend_scene_of_accident",
        "trunk_road_flag",
        "lsoa_of_accident_location",
        "enhanced_severity_collision"
      ],
      "rows": 3,
      "table": true,
      "tojson": true
    },
    {
      "name": "casualties_sample",
      "title": "Sample of stats19 data (2022 casualties)",
      "object": "casualties_sample",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "accident_index",
        "accident_year",
        "accident_reference",
        "vehicle_reference",
        "casualty_reference",
        "casualty_class",
        "sex_of_casualty",
        "age_of_casualty",
        "age_band_of_casualty",
        "casualty_severity",
        "pedestrian_location",
        "pedestrian_movement",
        "car_passenger",
        "bus_or_coach_passenger",
        "pedestrian_road_maintenance_worker",
        "casualty_type",
        "casualty_home_area_type",
        "casualty_imd_decile",
        "lsoa_of_casualty",
        "enhanced_casualty_severity",
        "casualty_distance_banding"
      ],
      "rows": 3,
      "table": true,
      "tojson": true
    },
    {
      "name": "casualties_sample_raw",
      "title": "Sample of stats19 data (2022 casualties)",
      "object": "casualties_sample_raw",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Accident_Index",
        "Vehicle_Reference",
        "Casualty_Reference",
        "Casualty_Class",
        "Sex_of_Casualty",
        "Age_of_Casualty",
        "Age_Band_of_Casualty",
        "Casualty_Severity",
        "Pedestrian_Location",
        "Pedestrian_Movement",
        "Car_Passenger",
        "Bus_or_Coach_Passenger",
        "Pedestrian_Road_Maintenance_Worker",
        "Casualty_Type",
        "Casualty_Home_Area_Type",
        "Casualty_IMD_Decile"
      ],
      "rows": 3,
      "table": true,
      "tojson": true
    },
    {
      "name": "file_names",
      "title": "stats19 file names for easy access",
      "object": "file_names",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "file_names_old",
      "title": "stats19 file names for easy access",
      "object": "file_names_old",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "police_boundaries",
      "title": "Police force boundaries in England (2016)",
      "object": "police_boundaries",
      "class": [
        "sf",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "pfa16cd",
        "pfa16nm",
        "geometry"
      ],
      "rows": 43,
      "table": false,
      "tojson": true
    },
    {
      "name": "schema_original",
      "title": "Schema for stats19 data (UKDS)",
      "object": "schema_original",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code",
        "label",
        "file",
        "col"
      ],
      "rows": 1060,
      "table": true,
      "tojson": true
    },
    {
      "name": "stats19_schema",
      "title": "Stats19 schema and variables",
      "object": "stats19_schema",
      "class": [
        "data.frame"
      ],
      "fields": [
        "table",
        "variable",
        "code",
        "label",
        "note",
        "type"
      ],
      "rows": 1820,
      "table": true,
      "tojson": true
    },
    {
      "name": "stats19_variables",
      "title": "Stats19 schema and variables",
      "object": "stats19_variables",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "table",
        "variable",
        "note",
        "type"
      ],
      "rows": 111,
      "table": true,
      "tojson": true
    },
    {
      "name": "vehicles_sample",
      "title": "Sample of stats19 data (2022 vehicles)",
      "object": "vehicles_sample",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "accident_index",
        "accident_year",
        "accident_reference",
        "vehicle_reference",
        "vehicle_type",
        "towing_and_articulation",
        "vehicle_manoeuvre",
        "vehicle_direction_from",
        "vehicle_direction_to",
        "vehicle_location_restricted_lane",
        "junction_location",
        "skidding_and_overturning",
        "hit_object_in_carriageway",
        "vehicle_leaving_carriageway",
        "hit_object_off_carriageway",
        "first_point_of_impact",
        "vehicle_left_hand_drive",
        "journey_purpose_of_driver",
        "sex_of_driver",
        "age_of_driver",
        "age_band_of_driver",
        "engine_capacity_cc",
        "propulsion_code",
        "age_of_vehicle",
        "generic_make_model",
        "driver_imd_decile",
        "driver_home_area_type",
        "lsoa_of_driver",
        "escooter_flag",
        "dir_from_e",
        "dir_from_n",
        "dir_to_e",
        "dir_to_n",
        "driver_distance_banding"
      ],
      "rows": 3,
      "table": true,
      "tojson": true
    },
    {
      "name": "vehicles_sample_raw",
      "title": "Sample of stats19 data (2022 vehicles)",
      "object": "vehicles_sample_raw",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Accident_Index",
        "Vehicle_Reference",
        "Vehicle_Type",
        "Towing_and_Articulation",
        "Vehicle_Manoeuvre",
        "Vehicle_Location-Restricted_Lane",
        "Junction_Location",
        "Skidding_and_Overturning",
        "Hit_Object_in_Carriageway",
        "Vehicle_Leaving_Carriageway",
        "Hit_Object_off_Carriageway",
        "1st_Point_of_Impact",
        "Was_Vehicle_Left_Hand_Drive?",
        "Journey_Purpose_of_Driver",
        "Sex_of_Driver",
        "Age_of_Driver",
        "Age_Band_of_Driver",
        "Engine_Capacity_(CC)",
        "Propulsion_Code",
        "Age_of_Vehicle",
        "Driver_IMD_Decile",
        "Driver_Home_Area_Type",
        "Vehicle_IMD_Decile"
      ],
      "rows": 3,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "accidents_sample",
      "title": "Sample of stats19 data (2022 collisions)",
      "topics": [
        "accidents_sample",
        "accidents_sample_raw"
      ]
    },
    {
      "page": "casualties_sample",
      "title": "Sample of stats19 data (2022 casualties)",
      "topics": [
        "casualties_sample",
        "casualties_sample_raw"
      ]
    },
    {
      "page": "check_input_file",
      "title": "Local helper to be reused.",
      "topics": [
        "check_input_file"
      ]
    },
    {
      "page": "clean_make",
      "title": "Clean vehicle make",
      "topics": [
        "clean_make"
      ]
    },
    {
      "page": "clean_make_model",
      "title": "Clean vehicle make and model",
      "topics": [
        "clean_make_model"
      ]
    },
    {
      "page": "clean_model",
      "title": "Clean vehicle model",
      "topics": [
        "clean_model"
      ]
    },
    {
      "page": "dl_stats19",
      "title": "Download STATS19 data for a year",
      "topics": [
        "dl_stats19"
      ]
    },
    {
      "page": "extract_make_stats19",
      "title": "Extract vehicle make from generic make/model string",
      "topics": [
        "extract_make_stats19"
      ]
    },
    {
      "page": "file_names",
      "title": "stats19 file names for easy access",
      "topics": [
        "file_names",
        "file_names_old"
      ]
    },
    {
      "page": "find_file_name",
      "title": "Find file names within stats19::file_names.",
      "topics": [
        "find_file_name"
      ]
    },
    {
      "page": "format_casualties",
      "title": "Format STATS19 casualties",
      "topics": [
        "format_casualties"
      ]
    },
    {
      "page": "format_collisions",
      "title": "Format STATS19 'collisions' data",
      "topics": [
        "format_collisions"
      ]
    },
    {
      "page": "format_column_names",
      "title": "Format column names of raw STATS19 data",
      "topics": [
        "format_column_names"
      ]
    },
    {
      "page": "format_ppp",
      "title": "Convert STATS19 data into ppp (spatstat) format.",
      "topics": [
        "format_ppp"
      ]
    },
    {
      "page": "format_sf",
      "title": "Format convert STATS19 data into spatial (sf) object",
      "topics": [
        "format_sf"
      ]
    },
    {
      "page": "format_vehicles",
      "title": "Format STATS19 vehicles data",
      "topics": [
        "format_vehicles"
      ]
    },
    {
      "page": "get_data_directory",
      "title": "Get data download dir",
      "topics": [
        "get_data_directory"
      ]
    },
    {
      "page": "get_MOT",
      "title": "Download vehicle data from the DVSA MOT API using VRM.",
      "topics": [
        "get_MOT"
      ]
    },
    {
      "page": "get_stats19",
      "title": "Download, read and format STATS19 data in one function.",
      "topics": [
        "get_stats19"
      ]
    },
    {
      "page": "get_stats19_adjustments",
      "title": "Download and read-in severity adjustment factors",
      "topics": [
        "get_stats19_adjustments"
      ]
    },
    {
      "page": "get_ULEZ",
      "title": "Download DVLA-based vehicle data from the TfL API using VRM.",
      "topics": [
        "get_ULEZ"
      ]
    },
    {
      "page": "get_url",
      "title": "Convert file names to urls",
      "topics": [
        "get_url"
      ]
    },
    {
      "page": "locate_files",
      "title": "Locate a file on disk",
      "topics": [
        "locate_files"
      ]
    },
    {
      "page": "locate_one_file",
      "title": "Pin down a file on disk from four parameters.",
      "topics": [
        "locate_one_file"
      ]
    },
    {
      "page": "match_tag",
      "title": "Match STATS19 collisions with TAG (RAS4001) cost estimates",
      "topics": [
        "match_tag"
      ]
    },
    {
      "page": "phrase",
      "title": "Generate a phrase for data download purposes",
      "topics": [
        "phrase"
      ]
    },
    {
      "page": "police_boundaries",
      "title": "Police force boundaries in England (2016)",
      "topics": [
        "police_boundaries"
      ]
    },
    {
      "page": "read_casualties",
      "title": "Read in STATS19 road safety data from .csv files downloaded.",
      "topics": [
        "read_casualties"
      ]
    },
    {
      "page": "read_collisions",
      "title": "Read in STATS19 road safety data from .csv files downloaded.",
      "topics": [
        "read_collisions"
      ]
    },
    {
      "page": "read_vehicles",
      "title": "Read in stats19 road safety data from .csv files downloaded.",
      "topics": [
        "read_vehicles"
      ]
    },
    {
      "page": "schema_original",
      "title": "Schema for stats19 data (UKDS)",
      "topics": [
        "schema_original"
      ]
    },
    {
      "page": "select_file",
      "title": "Interactively select from options",
      "topics": [
        "select_file"
      ]
    },
    {
      "page": "set_data_directory",
      "title": "Set data download dir",
      "topics": [
        "set_data_directory"
      ]
    },
    {
      "page": "stats19_schema",
      "title": "Stats19 schema and variables",
      "topics": [
        "stats19_schema",
        "stats19_variables"
      ]
    },
    {
      "page": "vehicles_sample",
      "title": "Sample of stats19 data (2022 vehicles)",
      "topics": [
        "vehicles_sample",
        "vehicles_sample_raw"
      ]
    }
  ],
  "_pkglogo": "https://github.com/ropensci/stats19/raw/master/man/figures/logo.png",
  "_readme": "https://github.com/ropensci/stats19/raw/master/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "class",
    "classInt",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "curl",
    "DBI",
    "dplyr",
    "e1071",
    "generics",
    "glue",
    "hms",
    "jsonlite",
    "KernSmooth",
    "lifecycle",
    "lubridate",
    "magrittr",
    "MASS",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "proxy",
    "R6",
    "Rcpp",
    "readr",
    "rlang",
    "s2",
    "sf",
    "tibble",
    "tidyselect",
    "timechange",
    "tzdb",
    "units",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "stats19-training-setup.Rmd",
      "filename": "stats19-training-setup.html",
      "title": "An introduction to road safety analysis with R: setup notes",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Time",
        "2 day course agenda",
        "Day 1: An introduction to R and RStudio for spatial and temporal data",
        "Day 2 road safety analysis with R"
      ],
      "created": "2019-10-03 18:05:41",
      "modified": "2025-01-13 00:09:37",
      "commits": 10
    },
    {
      "source": "stats19-training.Rmd",
      "filename": "stats19-training.html",
      "title": "Introduction to R for road safety: an introduction to R and practical exercises",
      "author": "Robin Lovelace, Malcolm Morgan & Andrea Gilardi",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Note",
        "Introduction",
        "Prerequisites",
        "R and RStudio",
        "Projects and scripts",
        "Writing and running code",
        "Viewing Objects",
        "Autocompletion",
        "Getting help",
        "Commenting Code",
        "The global environment",
        "Debugging Code",
        "Saving R objects",
        "Manipulating R objects",
        "Subsetting by index or name",
        "Subsetting by values",
        "Dealing with NAs and recoding",
        "Changing class",
        "Recoding values",
        "Now you are ready to use R",
        "R Packages",
        "What are packages?",
        "ggplot2",
        "dplyr and pipes",
        "Temporal data",
        "Spatial data",
        "sf objects",
        "Reading and writing spatial data",
        "sf polygons",
        "Spatial subsetting and sf plotting",
        "Geographic joins",
        "CRSs",
        "Buffers",
        "Attribute operations on sf objects",
        "Matching roads to crashes",
        "Visualising spatial datasets",
        "Analysing point data from stats19",
        "Analysing crash data on road networks",
        "Bonus exercises",
        "References"
      ],
      "created": "2019-10-04 11:11:19",
      "modified": "2026-03-05 00:40:21",
      "commits": 20
    },
    {
      "source": "make.Rmd",
      "filename": "make.html",
      "title": "Make and model data in STATS19",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Make and model data"
      ],
      "created": "2025-10-17 21:15:16",
      "modified": "2025-10-17 21:15:16",
      "commits": 1
    },
    {
      "source": "factsheet.Rmd",
      "filename": "factsheet.html",
      "title": "Reproducing Reported road casualties in Great Britain: pedestrian factsheet",
      "author": "Blaise Kelly",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Main findings",
        "2. Pedestrian traffic and reported casualties",
        "3. How far do pedestrians travel?",
        "4. Casualty rates per mile travelled",
        "5. Sex and age comparisons",
        "6. Which vehicles are involved in collisions with pedestrians?",
        "7. Time of day of collisions",
        "8. What type of road?",
        "9. Vehicle movement on the road"
      ],
      "created": "2025-10-08 11:46:54",
      "modified": "2025-10-08 15:20:45",
      "commits": 2
    },
    {
      "source": "stats19-vehicles.Rmd",
      "filename": "stats19-vehicles.html",
      "title": "Researching vehicles involved in collisions with STATS19 data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Vehicle level variables in the STATS19 datasets",
        "Relationships between vehicle type and crash severity"
      ],
      "created": "2019-08-20 18:25:21",
      "modified": "2024-10-28 11:32:59",
      "commits": 10
    },
    {
      "source": "blog-v4.Rmd",
      "filename": "blog-v4.html",
      "title": "Stats19 v4.0.0: Unified, Cleaned, and Faster Road Safety Data",
      "author": "Robin Lovelace",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why v4.0.0? The \"Breaking\" Changes",
        "Key Improvements",
        "1. Zero-Warning, High-Precision Loading",
        "2. Standardized Missing Values",
        "3. Faster Performance with readr Edition 2",
        "4. New Research Tools: Costs and Cleaning",
        "Getting Started"
      ],
      "created": "2026-03-08 23:00:20",
      "modified": "2026-03-08 23:00:20",
      "commits": 1
    },
    {
      "source": "stats19.Rmd",
      "filename": "stats19.html",
      "title": "Introducing stats19",
      "author": "R Lovelace, M Morgan, L Hama and M Padgham",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Functions",
        "Download STATS19 data",
        "Read STATS19 data",
        "Crash data",
        "Format STATS19 data",
        "Casualties data",
        "Vehicles data",
        "Creating geographic crash data",
        "Joining tables",
        "Time series analysis",
        "Further work",
        "References"
      ],
      "created": "2018-11-28 14:33:30",
      "modified": "2025-10-08 11:11:58",
      "commits": 49
    },
    {
      "source": "blog.Rmd",
      "filename": "blog.html",
      "title": "stats19: a package for road safety research",
      "author": "Layik Hama and Robin Lovelace",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Short history and affiliations",
        "What is STATS19 anyway?",
        "The road crash data in stats19",
        "Note",
        "How stats19 works",
        "Creating geographic crash data",
        "The big picture: road safety",
        "Conclusion",
        "References"
      ],
      "created": "2019-02-15 11:09:19",
      "modified": "2025-10-16 00:41:09",
      "commits": 26
    }
  ],
  "_score": 9.946184924603337,
  "_indexed": true,
  "_nocasepkg": "stats19",
  "_universes": [
    "ropensci",
    "robinlovelace"
  ],
  "_previous": "3.4.0.9000",
  "_binaries": [
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "4.0.0",
      "date": "2026-03-08T23:28:24.000Z",
      "distro": "noble",
      "commit": "18c2d897d284b577aa09fc6075dc6b126106ba05",
      "fileid": "12d1c09d9ade6e37749866f8fd1272a6f1dd074b0e8fbf6367ef42b49a9d4a1e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/22832220235"
    },
    {
      "r": "4.5.2",
      "os": "linux",
      "version": "4.0.0",
      "date": "2026-03-08T23:28:21.000Z",
      "distro": "noble",
      "commit": "18c2d897d284b577aa09fc6075dc6b126106ba05",
      "fileid": "e265f4bfac53aa05501c6b13dda74a8d84258a6ff974a1ebc610e9c53c8a2144",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/22832220235"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "4.0.0",
      "date": "2026-03-08T23:27:32.000Z",
      "commit": "18c2d897d284b577aa09fc6075dc6b126106ba05",
      "fileid": "63a3da38f70a4cd732e27c48063ff6749e6ff4f3ea6dbd428e6685ce6af06926",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/22832220235"
    },
    {
      "r": "4.5.2",
      "os": "mac",
      "version": "4.0.0",
      "date": "2026-03-08T23:26:56.000Z",
      "commit": "18c2d897d284b577aa09fc6075dc6b126106ba05",
      "fileid": "d5b280189f5a8db449b1cbb7ac4c9be7c71daa3f5fdf6e6dbf6bc436ac652246",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/22832220235"
    },
    {
      "r": "4.5.1",
      "os": "wasm",
      "version": "4.0.0",
      "date": "2026-03-08T23:28:27.000Z",
      "commit": "18c2d897d284b577aa09fc6075dc6b126106ba05",
      "fileid": "b4d312cad64ab07120fc668d76279a98b08af4abb6bbf2dfde513c4035338f2b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/22832220235"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "4.0.0",
      "date": "2026-03-08T23:27:19.000Z",
      "commit": "18c2d897d284b577aa09fc6075dc6b126106ba05",
      "fileid": "af61f89711a8dec91618f4d4184e88ec0b330a5d9bf02ac6912bf3dd50f29dbb",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/22832220235"
    },
    {
      "r": "4.4.3",
      "os": "win",
      "version": "4.0.0",
      "date": "2026-03-08T23:27:01.000Z",
      "commit": "18c2d897d284b577aa09fc6075dc6b126106ba05",
      "fileid": "e92f0e3fb3ef3a8042b8d72263fb04e769b0be8a99bdcc3cac129de0d79e35f9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/22832220235"
    },
    {
      "r": "4.5.2",
      "os": "win",
      "version": "4.0.0",
      "date": "2026-03-08T23:26:58.000Z",
      "commit": "18c2d897d284b577aa09fc6075dc6b126106ba05",
      "fileid": "11e59841c41729c7194585f44b8578d25a7c292deecba83adf933207e100562f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/22832220235"
    }
  ]
}