fars_map_state: Make a map for a given year and state

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function takes two arguments State Number state.num and Year year and draws a map with a point pr. observation. It throws an error if state.num and/or year is not the dataset. It returns NULL if no observations to plot. The function uses the previously defined functions make_filename and fars_read.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Integer. The state identifier

year

Numeric. Year of the FARS data

Value

A map

Examples

1
## Not run: fars_map_state(1, 2013)

A-Lind/BuildingAnRPackage documentation built on March 19, 2018, 3:13 a.m.