fars_map_state: fars_map_state A funtion that maps the location of the...

Description Usage Arguments Value Examples

View source: R/fars_function.R

Description

fars_map_state A funtion that maps the location of the accident during a specific year in one or more states. Returns error if state number is not present or year is incorrect. If there are no accidents (hopefully) it returns a message 'No accident to plot'

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A character or numeric containing the number state to map (coerced to integer in the function).

year

A character or numeric element containing the year to summirise.

Value

returns map with the accident as points.

Examples

1
2
3
4
5
## Not run: 
fars_map_state(1,2014)
fars_map_state('20','2014')

## End(Not run)

fdelzompo/BuildingRPackage documentation built on May 14, 2019, 9:42 a.m.