fars_read_years: Cleaning FARS data for for summarizing(s)

Description Usage Arguments Details Value Examples

Description

fars_read_years is a simple helper function which reads FARS files with specified year and clean record structure to be reported with fars_summarize_years.

Usage

1

Arguments

years

An integer/a list of integers to represent data files which needs to be read.

Details

This function is not designed for direct user interaction.

It is a helper function for fars_summarize_years.

If any of the objects requested via input is not available as a year file or is not coercible to integer an "invalid year" error message returns.

Value

An object of the tbl_df class which includes only incident dates in Months and Years, per requested year.

Examples

1
2
3
4
 library(farspkg)
 fars_read_years("2015")
 fars_read_years(c(2013.0,2014))
 

umutkahramankaptan/farspkg documentation built on May 8, 2019, 1:24 p.m.