make_filename: Create FARS data filename by year

Description Usage Arguments Value Note Examples

Description

This Helper-function constructs a valid FARS filename from a given year

Usage

1

Arguments

year

The year which the datafile is asked for.

Value

A character string with format: "accident_yyyy.csv.bz2", where yyyy is the year parameter passed.

Note

there is no check whether the number is a valid year for the FARS data, any typo or garbled number will result in a filename, correct or not.

Examples

1
2
3
## Not run: 
make_filename(2015)
## End(Not run)

RMHoek/farsfunctions documentation built on May 22, 2019, 12:41 p.m.