make_filename: Create a accident file name with extensions

Description Usage Arguments Details Value Examples

Description

This is a function that builds a filename in the standard file format for "Highway Fatality Report", given a year.

Usage

1

Arguments

year

A numeric or string giving the year for the filename

Details

If the provided year is not a integer, the value is truncated. If the provided year can't be converted to a numeric, a warning about N/A's is printed.

Value

This function returns a character vector with a year preceded by "accident_" and followed by ".csv.bz2"

Examples

1
2

tcoopermont/fars documentation built on May 31, 2019, 7:29 a.m.