fars_read_years: Read and Print month & year of accident data in the US in...

Description Usage Arguments Details Value Note Examples

Description

Reads and Prints month and year data in the dataframes from working directory that contain fatalities data of accidents in the US in given years

Usage

1

Arguments

years

A vector of years where each year is a 4 digit numeric or character string

Details

This function takes vector of valid years and applies make_filename and fars_read functions to read and print tibble of valid files from working directory

Value

Prints a tibble with Month and year for first 10 rows for each of the valid year inputs

Note

Function returns an error message if the years input is not a valid year

Examples

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

amolz/AnalyzeFatalities documentation built on May 23, 2019, 6:03 a.m.