fars_map_state: plot a map of accidents

Description Usage Arguments Value Note Examples

Description

plot a map of accidents for the given state and year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a number code for a state

year

a list of years

Value

a data frame with year and count

Note

warns when the year is not found in the fars data

stops when the state is not found in the fars data

warns when no accidents found

Examples

1
## Not run: d <- fars_map_states(state.num = 9, years = "2015") 

stanchapski/week4package documentation built on May 30, 2019, 9:40 a.m.