fars_read_years: Pulls month and year from an accident report csv

Description Usage Value Examples

Description

This function accepts a numberic input of either one or multipe years, then collects the month and year columns from the corresponding data file. If the year or one of the years are not searchable, the function will throw a warning and a NULL output.

Usage

1

Value

uses fars_read() function to create one or more tibble data frames that matches the year of the file name created with the make_filename() function. each tibble df will contain two columns, month and year. In the event that the year entered does not pull a valid data file, a warning will be generated as well as a "NULL" value.

Examples

1
2
3
4
5
6
7
8
## Not run: 
fars_read_years(2013,2014)

fars_read_years(2018)

# This function will generate a warning

## End(Not run)

ntbohl/fars documentation built on May 6, 2019, 7:19 a.m.