fars_summarize_years: Summarize FARS Data for Years

Description Usage Arguments Value Examples

Description

This function takes as input a list of years and returns a summary of the data from US National Highway Traffis Safety Administration's Fatality Anlaysis Reporting System (FARS) for those years.

Usage

1

Arguments

years

List of years. Each year will be coerced to an integer with as.integer()

Value

A tibble containing the number of entries in the FARS data for each month of the given years. First column is the month, and subsequent columns for each year. If a year is invalid, then a warning message is issued.

Examples

1
2
library(FARS)
fars_summarize_years(c(2013,2014,2015))

NicoliCo/FARS documentation built on May 25, 2019, 12:25 p.m.