make_filename: make_filename

Description Usage Arguments Details Value References Examples

View source: R/fars_functions_LCP.R

Description

A simple function to create the filename of accident data for a given year.

make_filename This function takes an user provided year to generate a filename from FARS.

Usage

1

Arguments

year

A numeric corresponding to the user provided year.

Details

The function explictly converts the numeric to an integer.

Value

A character string corrresponding to the full file name with the format. accident_year.csv.bz2.

References

https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars

Examples

1

Darwinita/FARSpackageLCP documentation built on May 27, 2019, 4:06 a.m.