fars_read_years: Reads a sequence of years

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

The function an argument years and builds a data fileneame out of it using make_filename Uses dplyr::mutate and dplyr::select. A list with the same number of elements as years is returned with the contents of the respective file in each element. If a file does not exist with the name generated by make_filename then a warning is issued and that position in the returned list is NULL.

Usage

1

Arguments

years

An list of interger values (or values that will cast to integer) repersenting years.

Value

This function returns a list of tibbles constructed from the data contained in the file for each year.

Examples

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

## End(Not run)

geogaffer/week4fars documentation built on Jan. 1, 2021, 2:18 a.m.