make_filename: Creates a filename based on year input

Description Usage Arguments Details Value Note Examples

View source: R/fars_functions.R

Description

make_filename will create a character vector filename with an assocaited year input

Usage

1

Arguments

year

The year to be in the name of the file.

Details

This takes a year input and creates a filename with this year. If the year is does not pass as.integer it will have a value of NA, and the function will throw an error after being passed to sprintf.

Value

A character vector filename

Note

This package does not depends on any extensions

Examples

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

## End(Not run)

MarijusB/building_first_R_package documentation built on Aug. 6, 2020, 12:12 a.m.