fars_map_state: Map Years Fatal Accidents onto State Map

Description Usage Arguments Note Examples

View source: R/fars_functions.R

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 Aug. 19, 2018, 3:45 a.m.