fars_summarize_years: Count observations from FARS data files

Description Usage Arguments Value Note Examples

Description

This function loads FARS data fiels for requested years, calculates observations per month in every year and returns the result in a tibble

Usage

1

Arguments

years

a vector or a list with years

Value

a tibble with numbers of observations in months

Note

The function will return an error if no valid year is given in the years parameter

Examples

1
2
3
4
5
6
# full years range is covered in data
fars_summarize_years(2013:2015)
# no year is covered
fars_summarize_years(2011:2012)
# invalid years are removed
fars_summarize_years(2011:2014)

rafal-gl/package_coursera documentation built on May 20, 2019, 5:58 p.m.