View source: R/oz-road-fatalities.R
oz_road_fatalities | R Documentation |
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")
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.