make_filename: Filename maker

Description Usage Arguments Details Value Note Examples

Description

This function creates a string containing a standardized filename for a CSV file containing a year of FARS data. It is used as an input to other functions in the package to help them identify FARS data files in the working directory.

Usage

1

Arguments

year

The year for which a filename is to be generated.

Details

This function takes the year input and passes it to the sprintf function, a wrapper for the C sprintf function

Value

Returns a string representing a filename.

Note

This function requres that the year parameter be interpretable as an integer. For proper functioning, only integer values should be used, although numeric inputs will be rounded down to the nearest integer and the function will produce the requested output.

Examples

1

expo45/wk4project documentation built on May 16, 2019, 9:56 a.m.