fars_map_state: fars_map_state

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

fars_map_state : This function takes a state number and year as a parameters and generates a map of the state showing the location of the accidents for that year. An invalid STATE number generates an error.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

an integer representing the number of the state as determined by the state numbers in the data. A state number for which there is no data generates an error.

year

an integer representing the year associated with the data

Value

a data frame of with the month and year of each accident summarised by year and month.

Examples

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

## End(Not run)

JTapper/CourseraWeek2 documentation built on May 7, 2019, 10:13 a.m.