fars_map_state: Map accidents for a state

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

fars_map_state will plot the accidents for a provided state and year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

State number

year

The year for which the accidents should be mapped

Value

The return value will be a map of accidents for a state and year. If one provides an invalid state, the function will provide an error indicating and invalid State number. Also, if no accidents were found for a state and year combination, then the function will return a message indicating that no accidents can be plotted.

Examples

1
## Not run: fars_map_state(3, 2014)

stasSajin/r-pack documentation built on May 17, 2019, 8:45 p.m.