Description Usage Arguments Format Value Source Examples
This is utility function. This is called internally, called from "fars_read_years" not intended for user call.
1 | fars_read(filename)
|
filename |
( sample : accident_2013.csv.bz2 ) |
A data frame with columns:
State (as number)
State Case Number
Number of Vehicle Forms Submitted- ALL
Number of Motor Vehicles in Transport (MVIT)
Number of Parked/Working Vehicles
Number of Forms Submitted for Persons Not in Motor Vehicles
Number of Persons Not in Motor Vehicles in Transport (MVIT)
Number of Persons in Motor Vehicles in Transport (MVIT)
Number of Forms Submitted for Persons in Motor Vehicles
County
City
Day of Crash
Month of Crash
Year of Crash
Day of Week
Hour of Crash
Minute of Crash
National Highway System
Roadway Function Class (discontinued)
Route Signing
Trafficway Identifier
Trafficway Identifier
Milepoint
Latitude
Longitude
Special Jurisdiction
First Harmful Event
Manner of Collision
Relation to Junction- Within Interchange Area
Relation to Junction- Specific Location
Type of Intersection
Work Zone
Relation to Trafficway
Light Condition
Atmospheric Conditions
Atmospheric Conditions
Atmospheric Conditions
School Bus Related
Rail Grade Crossing Identifier
Hour of Notification
Minute of Notification
Hour of Arrival at Scene
Minute of Arrival at Scene
Hour of EMS(Emergency Medical Service. e.g.Ambulance) Arrival at Hospital
Minute of EMS(Emergency Medical Service. e.g.Ambulance) Arrival at Hospital
Crash Level Factor 1
Crash Level Factor 2
Crash Level Factor 3
Fatalities
The DRUNK_DR data element on the Crash level was incorrectly derived on all person types from 1999 through 2007. Since then, it was derived based on all person types rather than based on Drivers only. Furthermore, the data element name (DRUNK_DR) implies that the individual was drunk, however, it actually captures those individuals whom the police reported alcohol involvement OR who tested positive for alcohol (i.e. their blood alcohol concentration was .01 g/dL or greater). Beginning with the 2008 Final FARS data file, DRUNK_DR has been derived for Drivers only
Error: throws error if the supplied file "foo" is not found, then throws the following error message "file foo does not exist"
data frame with the columns, mentioned below.
US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars
Column level understanding following link/pdf is referred. http://www.nber.org/fars/ftp.nhtsa.dot.gov/fars/FARS-DOC/Analytical User Guide/USERGUIDE-2015.pdf
1 2 3 4 | ## Not run:
fars_read("accident_2013.csv.bz2")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.