fars_map_state: Shows a graphic of the points where accidents took place for...

Description Usage Arguments Note Examples

View source: R/stats.R

Description

Shows a graphic of the points where accidents took place for the given state number for the given year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Integer ID of the state.

year

Integer year.

Note

Rasies an error if the state number is absent in the year fars dataset or the fars data file for the year is absent.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
fars_map_state(1, 2021)
Error in fars_read(filename) :
 file 'accident_2021.csv.bz2' does not exist

fars_map_state(1000, 2013)
Error in fars_map_state(1000, 2013) : invalid STATE number: 1000

fars_map_state(1, 2013)
<shows image>

## End(Not run)

balajiambreshrajkumar/fars documentation built on May 28, 2019, 6:36 p.m.