fars_map_state: Plot the location of accidents on US maps

Description Usage Arguments Value Examples

Description

This function load accident data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, into R for a specified year and state numbers, validate the parameters and plot the location of accidents on a US map.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Integers or numerical values for a US State numbers included in the analysis

year

An integer or numerical value for the year of the analysis

Value

a US map woith the location of accidents for the year specified in the parameters Returns invalid STATE number if the state number(s) can not be found in the file or directory Returns no accidents to plot if there are no accidents in the chosen file for the analysis

Examples

1
2
3
4
## Not run: 
fars_map_state(c(1:56),2014)

## End(Not run)

ivalette/faRs documentation built on May 18, 2019, 7:12 a.m.