make_filename: Make Filename

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

Generates the name of a file containing accident data for a specified year.

Usage

1

Arguments

year

A value indicating the year of the desired data. Values of class integer or numeric may be safely assigned to this variable. Values of class character are also safe if coercible to integer, e.g. '2013'. If the value is not coercible to integer, invalid results may occur due to introduction of NAs by coercion or an error may be generated.

Value

A character string holding the desired filename. As a side effect, this function also prints out the character string.

Note

Data only exist for the years 2013, 2014, & 2015. However, if another year is chosen, the filename is still returned with no error generation.

Examples

1
2

jschonem/FARSdatatools documentation built on Feb. 15, 2021, 12:13 a.m.