fars_summarize_years: Creates a cross-tab with number of accidents per month and...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function should be supplied with a vector of 4-digit years. It will read the FARS data from all the relevant files for those years, and return a cross-tabulation showing how many accidents there were in each month of each year.

Usage

1

Arguments

years

A vector of 4-digit numbers, each denoting a year. Must all be years for which you have a FARS data file, otherwise an error message will result.

Value

A tibble containing the number of accidents for each combination of month and year.

Examples

1
fars_summarize_years(c(2013,2014))

AECunningham/FARS2 documentation built on Oct. 30, 2019, 4:08 a.m.