make_filename: Make a FARS file name

Description Usage Arguments Details Value Examples

Description

This function construct a name for a FARS data file give a year.

Usage

1

Arguments

year

An integer, or any other type could be coerced to an integer, represents the year of the FARS data file.

Details

The function constructs a string for a FARS data file for the given year. It addes the prefix "accident_" to the given year then adds ".csv.bz2" suffix to the string.

Value

A string for a FARS data file for the given year.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# input year as an intger
make_filename(2013)

# input year as a character
make_filename("2014")

## End(Not run)

MahShaaban/fars documentation built on May 8, 2019, 3:21 p.m.