fars_summarize_years: Counts number of accidents per month and year

Description Usage Arguments Value

View source: R/fars_functions.R

Description

Using the list of years, this function calculates the number of accidents per month. The accident files must have in the working directory, years can be provided as list or vector.

Usage

1

Arguments

years

A vector or list of years (numeric or integer) that will be searched in the data

Value

Returns a pivot tibble (data frame) with months in rows and selected years in columns containing the number of accidents. Warning for each year that does not exist in the datasets. Error (no results) if a different than numeric or integer input is presented.


A0791298/CourseraPackage documentation built on Jan. 8, 2020, 2:45 a.m.