fars_map_state: Plot state accidents

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function plots the accidents that occured within the selected years in the selected states.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A vector indicating the number of the states to plot.

year

A vector indicating the years of the accidents to plot.

Value

This function returns a dataframe. The first column indicates the month, and each subsequent column shows the number of observations in that month for a specific year.

Examples

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

## End(Not run)

marioles/courserafars documentation built on July 6, 2020, 12:27 a.m.