fars_summarize_years: Monthly number of accident for given years in FARS data

Description Usage Arguments Value Examples

Description

Monthly number of accident for given years in FARS data

Usage

1

Arguments

years

a vector of years for which FARS data file will be loaded and number of accident will be summurized years

Value

return NULL for an invalid year. For a valid input, returns list of FARS data in data frame in years and number of accidents. It uses fars_read_years function.

Examples

1
2
3
4
5
  ## Not run: 
    fars_summarize_years(c(2013, 2014))
    fars_summarize_years(c("2013", "2014"))
  
## End(Not run)

karimsyed/myRPackage documentation built on May 8, 2019, 3:13 a.m.