fars_map_state: Map with plotted accidents.

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function will take state.num and year as input and returns a map with accident plotted in it. It will throw an error if the state.num is an invalid'.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A character that represents the state number.

year

A character.

Value

a map with accidents plotted in it. It will also returns a message that there are no accidents to plot if there no records of accident for the given state.

Note

This function will throws an error if state.num is invalid.

Examples

1
2
3
4
5
## Not run: 
fars_map_state("1", "2013")
	fars_map_state(state.num = "1", year = "2013")
 
## End(Not run)

GopalSeshadri/MyFirstPackage documentation built on May 6, 2019, 6:30 p.m.