fars_map_state: Map FARS Entries for a State and Year

Description Usage Arguments Value Examples

Description

This function takes as input a state and a year and plots a map of the location of the entries in the US National Highway Traffis Safety Administration's Fatality Anlaysis Reporting System (FARS) for the given state and year. The function throws an error if the state/year combination do not exist in the FARS database.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Numeric indicating the state for the map. Will be coerced to an integer.

year

Numeric indicating the year to map. Will be coerced to an integer.

Value

As a side-effect, plots a map of FARS entries for the state and year

Examples

1
2
library(FARS)
fars_map_state(1,2013)

NicoliCo/FARS documentation built on May 25, 2019, 12:25 p.m.