fars_read_years: Read in the FARS accident reports for a range of years

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function reads in the report accidents for the given years, reads the corresponding files into tibbles, and keeps only the month and year of a given accident. It then returns a list of the cleaned up data as a list.

Usage

1

Arguments

years

A list or vector of years

Value

A list of cleaned up dataframes containing the 'MONTH' and the 'year' of each accident

Note

An invalid year will generate a NULL element, and a warning message will be printed.

Examples

1
2
3
4
## Not run: 
fars_read_years(c(2013, 2014))

## End(Not run)

wesen/coursera_fars documentation built on May 18, 2019, 4:52 p.m.