fars_summarize_years: Summarise number of accident per month and per year(s)

Description Usage Arguments Value Examples

Description

The function calculate from FARS files the number of accidents per month and per year. It permits to compare months year by year. FARS is US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.

Usage

1

Arguments

years

a vector (atomic or list) of integer(s) representing year in 4 digits format YYYY. Years must be presents in FARS data.

Value

a tibble data frame in the wide format

Examples

1
2
3
4
5
## Not run: 
    output <- fars_summarize_years(c(2013,2014))
    print(output)

## End(Not run) 

TizVic/BuildingAnRPackage documentation built on May 4, 2019, 1:07 p.m.