fars_map_state: This is a function that generates a state map showing the...

Description Usage Arguments Value Examples

Description

This is a function that generates a state map showing the locations of all accidents for a specific year. It uses make_filename, fars_read.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The state number to generate the map for. It has to be an integer or a character string that can be converted into an integer, otherwise an error will be thrown and the function will halt. It must be present in the data files too, otherwise the function will stop and print an error message.

year

An integer or character string that can be converted into an integer.

Value

A state map showing the locations for all accidents for a specific state.

Examples

1
2
3
4
5
6
7
## Not run: 
year = 2015
fars_map_state(1, 2015)
fars_map_state(state.num = 1, year = 2015)
fars_map_state(state.num = "1", year = "2015")

## End(Not run)

KuanYang/fars documentation built on May 20, 2019, 7:54 a.m.