fars_summarize_years: Summarize Monthly Accident Totals

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This is a function that takes a set of years and, for each year, returns a tibble showing the total number of accidents recorded in each month of that year.

Usage

1

Arguments

years

The list or vector of four-digit years for which you want to import information.

Value

This function returns a tibble with 12 rows - one corresponding to each month of the year - and one column, titled by the four-digit year, for each valid year provided in the argument plus an additional column MONTH listing the months in the data from 1-12.

Each column named with a year shows the total month-by-month accident reports for each month of that year.

Examples

1
2
3

alexmjn/advancedr documentation built on May 29, 2019, 5:57 p.m.