fars_map_state: Map FARS data reports for a state

Description Usage Arguments Value Examples

View source: R/fars_script.R

Description

This function creates a map of fatal vehicle traffic crashes in a specified state and year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Integer or character vector for the state FIPS number to map.

year

Integer or character vector for the year to map.

Value

map plot showing latitude and longitude locations of traffic fatalities in the specified state and year. If the function is not able to coerce the inputs to integers the function will generate an error. If the files are not found at the current working directory the function will return an error. Issues reading in the CSV files also return errors.

Examples

1
2
fars_map_state(42, 2014)
fars_read_years(12, "2013")

j-new/FARSaccess documentation built on Feb. 18, 2018, 9:55 a.m.