fars_map_state: The function is to take a number of a state in US and a year...

Description Usage Arguments Value Examples

Description

The function is to take a number of a state in US and a year then filter the data, and plot a map of all the accidents in that state. The input state number must be in the data! (correct state) The files need to be in the working directory (Check function fars_read above!).

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a number of a state in US as integer

year

an input year as integer

Value

this function returns a map with total number of accidents in the input state number

Examples

1
2
3
4
5
6
## Not run: 
   fars_map_state(45, 2015)
   fars_read_years(2016) #example of warning (return error!)
   fars_read_years(60, 2016) #example of warning (return error!)

## End(Not run)

lbiagini75/farsfunctions documentation built on May 20, 2019, 10:23 p.m.