make_filename: Make File Name

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

make_filename(year) is a simple function to create file names for the data files. Fatality accident files come in a compressed format with "accident_YYYY_.csv.bz2" The function preserves the naming convention but differentiates the file with the "year" of the data.

Usage

1

Arguments

year

Numerical value which will be used to name the file.If the parameter is not a numerical value representing a four digit year, the function will return an error message if non-numeric values entered.

Value

The function will return a file name with the year value embedded in the file name to be decompressed.

Examples

1
2
3
4
5
## Not run: 
 make_filename(2013)
 make_filename(2014)
 
## End(Not run)

MoRudyKim/farsfunc documentation built on May 28, 2019, 1:54 p.m.