fars_map_state: Plot the number of accidents from FARS data for a given year...

Description Usage Arguments Value Examples

View source: R/c_fars_functions.R

Description

This function takes input corresponding to a state number and year rows and returns a map of the FARS data with dots at the longitude an lattitude for each fatal accident from that year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a number with the state.num code for the state to be mapped

year

a number for the year for FARS data accidents to be plotted in the map.

Value

This function returns a map in the Plots tab using data from the FARS data for the year input, filtered for the STATE column = yearstate.num If there is no file for an element of years then a warning is given for that year.

Examples

1
## Not run: fars_map_state(55,2013)

zjosha/MyPackage documentation built on May 23, 2019, 4:04 p.m.