fars_read_years: Read FARS Data for Multiple Years.

Description Usage Arguments Value Depends on Examples

Description

This function takes as its only parameter a vector of years, reads the FARS files for those years and returns the MONTH and year columns as a list.

Usage

1

Arguments

years

a vector of integer or strings that indicated the year of the FARS data files.

Value

a list of FARS data for the years in the parameter years. Invalid years will have a NULL entry in the returned list.

Depends on

  1. mutate and select in the dplyr package.

Examples

1
2
3
4
5
6
## Not run: 
fars_read_years(c(2013, 2014, 2015))
fars_read_years(2013:2015)
fars_read_years(list(2013, 2014, 2015))

## End(Not run)

CarlosSilva34/fars documentation built on May 23, 2019, 11:36 p.m.