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

Description Usage Arguments Value Examples

View source: R/fars_functions.R

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/rpkgtutorial documentation built on Dec. 16, 2017, 5:03 a.m.