fars_map_state: –5– fars_map_state: Creates a visualisation of the...

Description Usage Arguments Value

View source: R/fars_functions.R

Description

The function accepts a state ID and year and returns a map visualisation of the accidents. The state ID has to be an integer or numerical.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The ID of a US state as specified in the FARS data pack.

year

The selected year the visualisation will be based on.

Value

Returns a graph of the accidents based on the state.num and year inputs. Returns an error if the state and/ or year do not exist in the data set.


JimMeister/farsdata documentation built on May 28, 2019, 12:43 p.m.