fars_map_state: Pinpointing on a map where accident happened in a year

Description Usage Arguments Value Examples

Description

The function will show us the location on a state map, of where accidents happened by the year that we want. If an invalid State Number is inputed an error message will be given. An error message will also appears if there is no accidents happened in the year at the State.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

refer to the State Number that we want to plot the accident.

year

The year we want to plot the occurence of accidents on the State maps specified by the state.num parameter.

Value

A map of the state inputed through the state.num parameter with accidents location marked on the map for the desired year.

Examples

1
2
fars_map_state(1, 2013)
fars_map_state(5, 2015)

RushdSowell/farsForCoursera documentation built on May 20, 2019, 2:57 p.m.