fars_map_state: fars_map_state

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function plots the number of accidents for a specified state. This function returns an error if either the state.num or year do not exist in the dataset

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A number representing a state in the FARS data

year

A number representing the year for analysis

Value

This function returns a plot of the number of accidents for the specified state.

Examples

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

## End(Not run)

mmoramarco/buildingrpackage documentation built on May 23, 2019, 5:05 a.m.