fars_map_state: Create map with state shape and accidents.

Description Usage Arguments Value Examples

Description

This is a simple function that reads csv file for particular year. Filter data for particular state. In case if state does not exist appropriate message will be shown. If there is no accidents in particular state within specified year appropriate message will be shown. Function plots state shape and marks accidents as a dots.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer or character string that can be converted to integer meaning state

year

An integer or character string that can be converted to integer meaning year

Value

This function returns a map with state shape and marked accidents.

Examples

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

moonshine13/fars documentation built on May 23, 2019, 6:11 a.m.