fars_map_state: fars_map_state

Description Usage Arguments Value Note Examples

Description

This function gives for a certain year a graphical display of the location of fatal injuries within a particular state based on the data of fatal injuries in motor vehicle traffic crashes in the USA.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer or character string denoting the state number

year

An integer or character string denoting a year

Value

This function shows a graphical representation of the state and the locations within a state where fatal injuries occured

Note

This function will give a message "invalid STATE number: <state.num>" when the statenumber cannot be found within the data file based on the input of the year and will stop processing This function will give a message "no accidents to plot" when no fatal injuries took place in a certain state in a certain year

Examples

1
2
3
4
5
6
## Not run: 
fars_map_state(10,2013)
fars_map_state("1",2013)
fars_map_state("1","2013")

## End(Not run)

FerrieHeskes/Deel3-week2 documentation built on May 16, 2019, 10:04 a.m.