make_filename: Create and Print file name

Description Usage Arguments Details Value Note Examples

Description

make_filename creates and prints a filename representing zipped .csv file that would contain fatalities data in a given year in the US

Usage

1

Arguments

year

Numeric or Character String represting a calendar year

Details

This function converts the mentioned argument (using the year) into an integer and creates a zipped .csv file name prefixed with "accident_"

Value

Prints the filename of zipped .csv file

Note

leaving argument blank will lead to an missing argument error as there's no default value

Examples

1
2
3
4
5
## Not run: 
make_filename(2015)
make_filename("2017")
make_filename(17)
## End(Not run)

amolz/AnalyzeFatalities documentation built on May 23, 2019, 6:03 a.m.