fars_summarize_years: The information in FARS files for a given set of years is...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

The FARS is a nationwide census prepared by the US National Highway Traffic Safety Administration. It provides the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.

Usage

1

Arguments

years

A list of integer years that are of interest.

Details

Years must be represented by numeric values. Years represented as character strings will cause an error.

FARS files should be situated in the working directory. FARS files can be downloaded from the NHTSA website - https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars.

Value

A Tibble containing the summarised information. The Tibble will have three columns - year, MONTH, and n.

Examples

1
## Not run: fars_summarize_years(2013:2015)

larkinj/Submission documentation built on Dec. 21, 2021, 8:50 a.m.