fars_map_state: Mapping locations of fatal accidents

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function maps each location where a fatal accident occurred for each state and year provided. The maps library is necessary.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A numeric code for US state.

year

A numeric or string of the year of interest.

Value

A map of the United States mapping where a fatal accident occurred in the state and year of interest. An error occurs if there are no accidents registered in the state or if the year or the status key are not valid.

Examples

1
2
3
4
## Not run: 
fars_map_state(5,2013)

## End(Not run)

Arcturio/mipqueteria documentation built on May 20, 2019, 3:33 p.m.