fars_map_state: Plot a map with all accidents in a given State in a given...

Description Usage Arguments Details Examples

Description

This function takes a State number (state.num) indicator and a year (year), and plots a map with all the accident recorded in the given State/year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

an integer representing a State code number. It is coherced into an integer.

year

an integer representing a year.

Details

If the State number does not exhist in the data for the given year, returns a message with "invalid STATE number".

If there are no accidents in the given State for the given year, it returns a message saying "no accidents to plot"

Examples

1
2
3
4
## Not run: 
fars_map_state(23, 2013)

## End(Not run)

frenkg/courserafarsfg1 documentation built on May 16, 2019, 2:55 p.m.