fars_map_state: MapByState

Description Usage Arguments Details Value Examples

Description

Map Traffic Accidents by State and Year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

State number as defined in the csv file - should be an integer between 1 and 50

year

Year to be queried for number of accidents - should be an integer for the years 2013 through 2015

Details

A function that reads data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System and maps the number of fatalities for one state for a particular year

Will report an error if there is an invalid state number or if there are no accidents in that state in the specified year or if multiple states or years are chosen

Value

A map of a state, with points notating accidents for that year

Examples

1
   fars_map_state(12, 2015)

dangoldberg580/FarsMap documentation built on May 14, 2019, 3:35 p.m.