fars_map_state: Map the data for a given state for a given year

Description Usage Arguments Value Source Examples

Description

This function takes a state number and a given year in YYYY format and displays a geogrphical map of fatalities accross the state for that year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A numeric value from 1 to 51 that represents each of the states and DC

year

A specific year in YYYY format

Value

A geographic map of the state with points representing fatalities during that year

Source

The data used is from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS), which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.

Examples

1
2
3
4
5
## Not run: 
fars_map_state(24, 2014)
fars_map_state(51, 2015)

## End(Not run)

diyanr/RPackageAssignment documentation built on May 15, 2019, 8:53 a.m.