causes: Causes of crashes.

Description Usage Format Source See Also

Description

A dataset of 888072 crash causes, recorded by the New Zealand Transport Agency (NZTA) as being causes of crashes in the crashes dataset. There is a many-to-one relationship between causes and crashes. They can be joined by the common column id (see the example below). Alternatively, each cause can be associated with a specific vehicle in each crash, by first joining the vehicles dataset to the crashes one, and then joining the causess dataset by the two common columns id and vehicle_id.

Other attributes in a many-to-one relationship with the crashes are available in the datasets vehicles, and objects_struck.

Usage

1

Format

A data frame with 888072 rows and 7 variables:

id

Unique number identifying the crash, by which the link{crashes} table can be joined.

index

Unique identifier of the cause of each crash (unique in combination with id.

code

Identifier of cause in the data dictionary.

vehicle_id

Vehicle in the crash with which the cause is associated.

cause

Description of the cause.

cause_category

Highest-level group to which the cause belongs.

cause_subcategory

Lowest-level group to which the cause belongs.

Source

http://www.nzta.govt.nz/resources/crash-analysis-system-data/

See Also

A comprehensive data dictionary is provided by the NZTA at http://www.nzta.govt.nz/assets/resources/guide-to-coded-crash-reports/docs/guide-to-coded-crash-reports.pdf. A copy of it is distributed with this package in the extdata directory.

Details about how crash reports are completed are provided by the NZTA at http://www.nzta.govt.nz/assets/resources/traffic-crash-reports/docs/traffic-crash-reports.pdf. A copy of it is distributed with this package in the extdata directory.


nacnudus/nzcrash documentation built on May 23, 2019, 12:04 p.m.