fars_summarize_years: –4– fars_summarize_years: Counts number of accidents per...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Based on the user-selected years, the function summarises the number of accidents in the US on a monthly basis. The accident files need to be in the working directory.

Usage

1

Arguments

years

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

Value

Returns a tibble in a wide format (pivot) with months in rows and defined years in columns, using as values the number of accidents. Returns a warning for every input year that does not exist in the datasets.

Examples

1
2
3
4
## Not run: 
fars_summarize_years(2015:2016)

## End(Not run)

JimMeister/farsdata documentation built on May 28, 2019, 12:43 p.m.