make_filename: Create custom filename

Description Usage Arguments Value Examples

Description

This function creates a custom filename string from the combination of year given by the user (using year) and the default part of the filename of the file with data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. This string can then be used to read data from the file with data from the given year. The user input needs to be an integer otherwise the function will result in an error.

Usage

1

Arguments

year

An integer respresenting the year to be used in the filename string

Value

This function returns a string with the filename customized with given year

Examples

1

Ademo73/Coursera_assignment documentation built on May 5, 2019, 12:27 p.m.