fars_map_state: FARS State Accident Plotter

Description Usage Arguments Details Value Examples

Description

This function plots the accidents of a given year and state to the state's map. It uses fars_read and make_filename functions included in this package. It also imports numerous functions from dplyr, maps and graphics packages for its' function

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The state's number as an integer

year

The desired year in YYYY format as an integer

Details

This function requires a valid state number and a year that is included in FARS dataset to operate. The working directory needs to include .csv.bz2 files included in the data folder of fars_data.zip file.

Value

Function returns a map of the given state with accident reports that have valid longitude and latitute points plotted on the map.

Examples

1
2
3
4
5
6
## Not run: 
fars_map_state(25,2014)
fars_map_state(1,2015)
fars_map_state(6,2013)

## End(Not run)

LapsedPacifistROU/FARSAssignment documentation built on May 7, 2019, 3:12 p.m.