Title: | Pulls Data From Australian Road Deaths Database |
---|---|
Description: | ozroaddeaths is a package that pulls data from the Australian Road Deaths Database, run by the Bureau of Infrastructure, Transport and Regional Economics (BITRE). This provides basic details of road transport crash fatalities in Australia as reported by the police each month to the State and Territory road safety authorities. The details provided in the database fall into two groups: 1) the circumstances of the crash, for example, date, location, crash type some details regarding the persons killed, for example, age, gender and road user group. |
Authors: | Nicholas Tierney [aut, cre], Maddie Davey [aut], Justin Carmody [aut], Steph de Silva [aut], Adam Gruer [aut], Mathew Ling [ctb], Michael Sumner [ctb] |
Maintainer: | Nicholas Tierney <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.3.9000 |
Built: | 2024-11-27 03:55:16 UTC |
Source: | https://github.com/njtierney/ozroaddeaths |
Get BITRE data with hard coded link
get_bitre_hard_coded(group = "fatal_crashes")
get_bitre_hard_coded(group = "fatal_crashes")
group |
Character. The group name. |
path to the temporary XLSX file.
This function pulls data from the Australian Road Deaths Database, specifically, the circumstances of the crash, for example, date, location, crash type.
oz_road_fatal_crash(source = "stable")
oz_road_fatal_crash(source = "stable")
source |
Character. Either "stable" or "latest". |
There are two sources of data: data.gov.au and bitre.gov.au. While bitre.gov.au is more up-to-date, there are inconsistencies between the two sources for certain crash records.
a dataset (tibble) of fatal crash data
Format: a data frame with 43,345 observations on the following 14 variables.
An integer, 13 digits, unique to each crash
Text, Austraian jurisdiction, Abbreviation for each state and territory. QLD = Queensland, NSW = New South Wales, ACT = Australian Capital Territory, VIC = Victoria, TAS = TASMANIA, SA = South Australia, WA = Western Australian, NT = Northern Territory
Date, Year, Month. This is the date of the crash, but with unknown date (set to 1st)
Integer, the month of the date of the crash
Integer, the year of the date of the crash
Text the weekday of the date of the crash
Time, the time of the date of the crash
POSIXct, the date time of the crash
Integer, number of killed persons in the crash
Character, Code summarising the type of type of crash. Single, Multiple, or Pedestrian
logical - whether a bus was involved in the crash (TRUE) or not (FALSE)
logical - whether a heavy rigid truck was involved in the crash (TRUE) or not (FALSE)
logical - whether a articulated trucl was involved in the crash (TRUE) or not (FALSE)
Integer, posted speed limit at the location of crash
https://bitre.gov.au/statistics/safety/fatal_road_crash_database.aspx
## Not run: oz_road_fatal_crash ## End(Not run)
## Not run: oz_road_fatal_crash ## End(Not run)
Retrieve road fatal crash data from BITRE
oz_road_fatal_crash_bitre()
oz_road_fatal_crash_bitre()
This function pulls data from the Australian Road Deaths Database. Specifically, the details regarding the persons killed, for example, age, gender and road user group.
oz_road_fatalities(source = "stable")
oz_road_fatalities(source = "stable")
source |
Character. Either "stable" or "latest". |
There are two sources of data: data.gov.au and bitre.gov.au. While bitre.gov.au is more up-to-date, there are inconsistencies between the two sources for certain crash records.
a dataset (tibble) of fatal crash data
An integer, 13 digits, unique to each crash
Text, Austraian jurisdiction, Abbreviation for each state and territory. QLD = Queensland, NSW = New South Wales, ACT = Australian Capital Territory, VIC = Victoria, TAS = TASMANIA, SA = South Australia, WA = Western Australian, NT = Northern Territory
Date, Year, Month and Day. This is the date of the crash, but with unknown day so set to the 1st
Integer, the month of the date of the crash
Integer, the year of the date of the crash
Text the weekday of the date of the crash
Time, the time of the date of the crash
Character, Code summarising the type of type of crash. Single, Multiple, or Pedestrian
POSIXct, the date time of the crash
logical - whether a bus was involved in the crash (TRUE) or not (FALSE)
logical - whether a heavy rigid truck was involved in the crash (TRUE) or not (FALSE)
logical - whether a articulated trucl was involved in the crash (TRUE) or not (FALSE)
Integer, posted speed limit at the location of crash
Text, Type of person killed. Driver, Passenger, Pedestrian, Motorcycle Rider, Motorcycle Passenger, Bicyclist (including pillion passengers)
Text, Biological Sex of person killed, Male, Female, Unknown
Integer, Age of person killed, in years
## Not run: oz_road_fatalities ## End(Not run)
## Not run: oz_road_fatalities ## End(Not run)
ozroaddeaths is a package that pulls data from the Australian Road Deaths Database, run by the Bureau of Infrastructure, Transport and Regional Economics (BITRE). This provides basic details of road transport crash fatalities in Australia as reported by the police each month to the State and Territory road safety authorities. The details provided in the database fall into two groups: 1) the circumstances of the crash, for example, date, location, crash type some details regarding the persons killed, for example, age, gender and road user group.
Maintainer: Nicholas Tierney [email protected]
Authors:
Maddie Davey [email protected]
Justin Carmody [email protected]
Steph de Silva [email protected]
Adam Gruer [email protected]
Other contributors:
Mathew Ling [email protected] [contributor]
Michael Sumner [email protected] [contributor]
Useful links: