fars_map_state: Show accidents on the map of a state

Description Usage Arguments Value Examples

Description

The function shows on the map the accidents that happened during a year on the territory of the state. It uses LATITUDE and LONGITUDE registered for each accident in FARS to plot it on the state's map. For more information about FARS data, see Fatality Analysis Reporting System.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An atomic numeric value that can be coerced to a two-digit integer representing the state's code. If there is no states matching such a code, an exception is thrown.

year

An atomic numeric value convertible to a four-digit integer representing a year to process.

Value

NULL

Examples

1
2
fars_map_state(1, year = 2015)
fars_map_state(state.num = 1, year = 2013)

Valentin-Konoshenko/MyFirstRPackage documentation built on May 8, 2019, 6:44 p.m.