fars_map_state: Given a number representing a US State and a value...

Description Usage Arguments Value Note Examples

Description

Given a number representing a US State and a value representing a year, this function extracts the FARS data for the given State at the given year, removes non-sensical observations (where longitude > 900 or latitude > 90) and plots all the remaining observations on a map.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A value convertible to an integer, which represents the US State for which to extract FARS data.

year

A value convertible to an integer, which represents the year for which to extract FARS data.

Value

No return value, but has the side effect of plotting the FARS observations for the given US State (state.num) at the given year on a map.

Note

state.num and year must both be castable to integers.

Examples

1
2
3
4
## Not run: 
fars_map_state(4, 2015)

## End(Not run)

chrpihl/fars documentation built on May 8, 2019, 6:51 p.m.