make_filename: Returns a filename.

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function takes year as an input variable and returns a filename containing the input year. It will return "accident_NA.csv.bz2" if the input argument year is not specified correctly. Additionally, a warning message will be printed.

Usage

1

Arguments

year

A character or numeric input variable that can be converted into an integer.

Value

This function returns a filename with input year as a string.

Examples

1
2
make_filename(2013)
make_filename(c("2013","2014"))

mkaywins/farsdata documentation built on Nov. 4, 2019, 6:59 p.m.