fars_read_years: Reading multiple years of FARS data files

Description Usage Arguments Value Examples

Description

This function extracts months and years of every FARS file within the years specified. An error is retuned for invalid years specified when the FARS file doesn't exits for that year

Usage

1

Arguments

years

a vector of integers or strings with the year of the FARS data files

Value

a list of FARS months and years based on the FARS files specified by the years input

Examples

1
2
3
4
5
  ## Not run: 
    my_data <- fars_read_years(c(2013, 2014, 2015))
    my_data <- fars_read_years(c("2013", "2014", "2015"))
  
## End(Not run)

ykv001/FARSpckgwk4 documentation built on May 6, 2019, 12:05 a.m.