fars_map_state: Plot a map of all fatal motor vehicle accidents for a...

Description Usage Arguments Details Value See Also Examples

View source: R/fars_functions.R

Description

makes a map of all fatal motor vehicle accidents for a specified year and specified state.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Integer of state ID number to plot a map for.

year

Integer of the year to plot motor vehicle accidents from.

Details

Throws an error if specified state ID numbers and years are invalid. Gives a warning if there are no fatal motor vehicle accidents in a given state and year.

Value

A map of a state with points of GPS coordinates of motor vehicle accidents from a specific year.

See Also

https://www.nhtsa.gov/Data/Fatality-Analysis-Reporting-System-(FARS)

Examples

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

dandewaters/FARSFunctions documentation built on May 27, 2020, 12:04 a.m.