fars_map_state: Create a map for the location of accidents within a state for...

Description Usage Arguments Value

View source: R/fars_functions.R

Description

Create a map for the location of accidents within a state for a given year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

(integer) the number of the ID of the state to analyse.

This function depends on the dplyr::filter, maps::map functions. bind_rows, group_by, and summarize. It also depends on tidyr::spread.

year

(integer or character) the year identifying the file whose name to construct.

Value

NULL. Function has side effect of plotting a map.


tynesjo/fars_functions_tst documentation built on May 3, 2019, 2:03 p.m.