make_filename: Print a filename based on the value of the year argument...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

This is a function that takes a year in the form of an integer or string as an argument and then uses that value to print a standard filename for data of that given year.

Usage

1

Arguments

year

A year passed as an argument in the form of an integer or string for which the filename should be labeled and formatted

Details

Errors: This function will result in errors to the functions that call it as a helper if values other years or other than years for which there is data are passed.

Value

This function returns a string

Examples

1
2
3
4
5
## Not run: 
make_filename(2013)
make_filename('2013')

## End(Not run)

mikemcclendon/farsfunctions documentation built on May 5, 2019, 5:53 p.m.