fars_read_years: Read yearly FARS data from list of files into a tibble list

Description Usage Arguments Details Value Note Examples

View source: R/fars_functions.R

Description

Function that reads in data from a csv file and returns a tibble

Usage

1

Arguments

years

Vector denoting the years for which the yearly FARS data is required

Details

Function aborts and prints error message if there is no FARS data for a particular year

Value

This function returns a list of tibble, with each element containing the yearly FARS data

Note

Makes use of make_filename() and fars_read() functions

Examples

1
2
3
4
## Not run: 
fars_read_years(c("2020", "2019", "2018"))

## End(Not run)

shaowei72/MyFirstPackage documentation built on June 25, 2020, 10:07 a.m.