fars_summarize_years: Summarise Number of Accidents Per Months

Description Usage Arguments Details Value Examples

Description

The function counts the number of accidents that occurred in each month of the specified years.

Usage

1

Arguments

years

an integer vector specifying which years should be imported into R

Details

Internally, the function builds on the function fars_read_years and summarises the data by counting the number of month-year occurrences.

Value

The function returns a tibble with the number of accidents that occurred in a specific month of a specified year. The months (1-12) are shown in rows and the years in columns.

Examples

1
2
3
4
## Not run: 
fars_summarize_years(c(2013, 2014))

## End(Not run)

bzunar/trafficSafety documentation built on June 5, 2019, 7:57 a.m.