fars_read_years: Read a series of accident files for given years

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This is a function that reads a accident files for a vector of a dplyr::tbl_df with columns for the months and given year of accidents in that year.

Usage

1

Arguments

years

A vector of years for which to summarize accident months

Value

This function returns a list of tbl_df object for each year that each contain the months and year of accidents for that year

Note

Calling this function with for a year that doesn't have an accident file results in an "invalid year" warning for that year. This function is typically called by the fars_summarize_years() function and not run on its own. Hence not exported.

Examples

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

milandv/courserafars documentation built on March 19, 2018, 3:12 a.m.