fars_read_years: Return the month and year corresponding to each FARS...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

This is a function that takes a year in the form of an integer or string as an argument and then uses that value to read in a CSV as a tbl_df for data of that given year and and returns the month and year corresponding to each observation.

Usage

1

Arguments

years

A year passed as an argument in the form of an integer or string for which the data should be read in

Details

This function will return an error message for invalid years.

Value

This function returns a list

Examples

1
2
3
4
5
## Not run: 
fars_read_years(2013)
fars_read_years('2013')

## End(Not run)

mikemcclendon/farsfunctions documentation built on May 5, 2019, 5:53 p.m.