make_filename: Generate a filename based from a year

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function generates the filename where the data for a specified year is stored. Note: The working directory must be set to the directory that contains the data files.

Note: This function will not warn you if the file for the specified year does not exist.

Usage

1

Arguments

year

The year as an integer or character for which to generate the filename.

Value

This function returns the filename as a character string of Fatality Analysis Reporting System data for the specified year.

Examples

1
2

mi3112/Building_an_R_Package documentation built on Jan. 4, 2018, 12:52 a.m.