fars_map_state: fars_map_state - plot location of all accidents for a...

Description Usage Arguments Value Note Examples

Description

This function takes a a specific state number and a specific year, read the file of that year and plot the location of all accident happened in that state in that year on a map.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The specific number whcih represend the state where the accidents occur.

year

The specific year when the accidents occur, need to be able to converted to an integer

Value

a graph which shows the locations of all accidents happened in a specific state in a specific year. The locations are shown in dots on the map of the state.

Note

Error when the state number is invalid or there's no accidents in that state in that year

Examples

1
2
## Not run: fars_map_state(23,2013)
## Not run: fars_map_state("10","2014")

Cheukting/fars documentation built on May 29, 2019, 5:56 p.m.