make_filename: Make a file name

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

This function creates a filename for a .csv.bz2 file based on the year that you input, yielding a string with the format "accident_<year>.csv.bz2".

Usage

1

Arguments

year

Numerical or integer value indicating the year of the data.

Details

It requires a numerical or integer input otherwise ends with an error.

Value

Returns a character string with the format "accident_<year>.csv.bz2".

Examples

1
makefilename(2016)

MarcEres/FarsFinal2 documentation built on Dec. 17, 2021, 2:20 a.m.