fars_map_state: Map FARS fatal road incients by state

Description Usage Arguments Value Examples

Description

This function will collect FARS csv data for a given year and map the data for a given state number (state.num). The code for this function is part of the Building R Packages course sourced from coursera. Requires the dplyr, readr, maps, stats and graphics packages to be loaded. Example data is only available for 2013:2015.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The unique state number

year

The year for which we'll be collecting data

Value

No value is returned. Will map the FARS data.

Examples

1
2
3
4
5
6
7
## Not run: 
  setwd("data")
  year <- 2015
  state.num <- 15
  fars_map_state(state.num, year)

## End(Not run)

simongarisch/R-Packages-Week-4 documentation built on May 29, 2019, 9:36 a.m.