fars_map_state: Map FARS Crash Fatalities

Description Usage Arguments Value Note References Examples

Description

Reads a Fatality Analysis Reporting System (FARS) file and plots a map of fatal crashes.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Two digit FARS state reference number.

year

Two digit year, coerced to integer.

Value

This function produces a plot of the fatal crashes on a map of the state.

Note

If the state.num provided is not in the FARS file, an error is produced.

If there are no fatal crashes for the state and year, a message is provided.

LONGITUD values > 900 are set to NA, LATITUDE values > 90 are set to NA

References

FARS data: https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars; State reference numbers: https://crashstats.nhtsa.dot.gov see publication 812296

Examples

1
## Not run: fars_map_state('01','2014')

kaquilino/fars documentation built on May 20, 2019, 7:20 a.m.