make_filename: make_filename

Description Usage Arguments Value Examples

Description

This function takes a year as a character string, coerces it to an integer, then uses sprintf to generate a filename for one of the FARS datasets. This function has no input sanitation and will allow any year string and any character.

Usage

1

Arguments

year

a character string defining a year

Value

returns a string in the format accident_YYYY.csv.bz2

Examples

1
make_filename("2013")

mattmalcher/farsdemopkg documentation built on May 4, 2019, 6:30 a.m.