fars_summarize_years: Summarise number of records per month contained in fars...

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

Takes a list or vector of years and returns a tibble with number of records month by year for corresponding fars csv files in the working directory.

Usage

1

Arguments

years

A list or vector of numerics, integers or numeric/integer strings to read "accident_<year>.csv.bz2" files from the working directory.

Value

A tibble contain number of records month by year

Note

If file does not exist for corresponding year a warning will be generated.

Examples

1
2
3
4
5
6
7
8
## Not run: 
fars_summarise_years(2018)
fars_summarise_years(2018L)
fars_summarise_years('2018')
fars_summarise_years(c(2017, 2018))
fars_summarise_years(list(2017, 2018))

## End(Not run)

tgadamson-ds/fars documentation built on Aug. 19, 2018, 3:45 a.m.