fars_map_state: Maps all the incidents occuring in a given state for a given...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

The FARS is a nationwide census prepared by the US National Highway Traffic Safety Administration. It provides the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The numeric identifier of the state that is of interest.

year

The integer year that is of interest.

Details

Years must be represented by numeric values. Years represented as character strings will cause an error.

FARS files should be situated in the working directory. FARS files can be downloaded from the NHTSA website - https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars.

Use of an invalid state number will cause an error. The list of state numbers can be found in FARS user manual - https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812602

Value

A graphic showing a map of the state of interest with the FARS incidents overlaid.

Examples

1
## Not run: fars_map_state(1, 2013)

larkinj/Submission documentation built on Dec. 21, 2021, 8:50 a.m.