fars_summarize_years: Count number of accidents happend in each month and year

Description Usage Arguments Value Examples

Description

This function imports and combines data from multiple files and counts the number of accidents happend in each month and year. The first column of the returned tibble represents the month index, whereas other columns represent the monthly accident counts in certain years.

Usage

1

Arguments

years

A numeric vector of four-digit numbers representing years.

Value

A tibble of monthly accident counts.

Examples

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

## End(Not run)

yzhang3142/fars documentation built on May 28, 2019, 7:38 a.m.