fars_map_state: create a map with the Fatality Analysis Reporting System data

Description Usage Arguments Value Note Examples

Description

This function loads the data from the Fatality Analysis Reporting System and creates a plot with the map of the given state and the fatalities of the given year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Unique state number as in the Fatality Analysis Reporting System data.

year

Year for which the plot should be produces.

Value

None.

Note

This function will create an error if the file for the given year does not exist or if the state number is invalid.

Examples

1
2
3
4
## Not run: 
fars_map_state(1, 2013)

## End(Not run)

monstrap/myW4Assignment documentation built on May 14, 2019, 2:55 p.m.