make_filename: File name builder for FARS data

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This is a simple fuction building the file name for the data at hand, given a year as input. In case the year is not a number, it will be transformed into a number.

Usage

1

Arguments

year

A year (string or numeric) for which you know that data is available, e.g. "2015"

Value

This function returns a file name based on the year provided.

Examples

1
2
3
4
5
## Not run: 
make_filename(2014)
make_filename("2015")

## End(Not run)

PatGruetter/FARSPackage documentation built on Dec. 23, 2019, 7:34 p.m.