fars_read_years: Read multiple years FARS data

Description Usage Arguments Details Value Depends on Examples

View source: R/fars_functions.R

Description

This is a function that reads FARS data for one or more years specified by years argument and returnes a list of corresponding data frames (one data frame by year)

Usage

1

Arguments

years

numeric vector that specifies the years to read the data

Details

Each year in separate data frame in the same list

Value

This function returns a list of data frames

Depends on

  1. mutate and select in the dplyr package.

Examples

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

## End(Not run)

zpopovych/fars documentation built on May 20, 2019, 1:24 p.m.