fars_read_years: Load FARS accidents for given years

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

For given list of years, load the FARS accidents dataset and return as a tibble (per year)

Usage

1

Arguments

years

A list of years, format of each year must be corcible to a valid year by as.integer() function

Details

The function can malfunction in case the dataset for specified year is missing, or is given in wrong format

Value

This function returns a list of tibbles, in each tibble month and year of each accident will be listed

Examples

1
2
3
fars_read_years("2013")
fars_read_years(c(2013, 2014))
fars_read_years(c("2013", "2014", "2015"))

bsleczko/farsReport documentation built on May 25, 2019, 7:25 p.m.