fars_map_state: fars_map_state

Description Usage Arguments Value Examples

View source: R/packageproject.R

Description

This function takes in a number representing a state and a year. The function outputs a map with the state's lines and accident locations. If the state.num is not in the data then an error is returned. If the file cannot be found or is in the incorrect format and error will also be shown.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A Integer

year

Integer

Value

A map with state lines and accident locations (mapped as points). If there is no data to plot, then that message will be shown.

Examples

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

hardisoneverett/testpackage documentation built on Nov. 5, 2019, 2:39 p.m.