fars_map_state: Map Years Fatal Accidents onto State Map

Description Usage Arguments Note Examples

Description

Draws statemap and plots fatal accidents from fars file for specified year and state.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Numeric, integer or numeric/integer string corresponding with a US state code.

year

Numeric, integer or numeric/integer string corresponding to "accident_<year>.csv.bz2" file in the working directory

Note

If state number does not exist in file will generate an error If no records for state exist will write message and return an a invisible(NULL)

Examples

1
2
3
4
5
## Not run: 
fars_map_state(1 , 2018)
fars_map_state('1' , '2018')

## End(Not run)

tgadamson-ds/fars documentation built on May 6, 2019, 6:59 p.m.