fars_map_state: fars_map_state function

Description Usage Arguments Value Examples

Description

fars_map_state(state.num,year) returns a plot of the information loaded for a given state and year. If the state.num is invalid this function stops execution and prints an error message. @importFrom dplyr filter @importFrom maps map

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

is the US state number from where we will pick the information to be analized

year

is the selected year of the data collected desired state number and year the selected data collected from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes needs to be ploted.

Value

a plot of the accidents for a given state and year.

Examples

1
2
3
4
5
## Not run: 
fars_map_state()
fars_map_state("10,2014")

## End(Not run)

rainiercito/farsfunctions documentation built on May 26, 2019, 9:54 p.m.