make_filename: Create a specific filename for the year

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function creates a valid filename based on the year argument. The filename is useful for processing the fars_data.zip dataset. The data of a given year is in a separate file in fars_data.zip .

Usage

1

Arguments

year

The integer value of a year. The year should be a positive decimal. In order to use with the fars_data.zip dataset, the year should be in the range 2013..2015

Value

This function returns string, containing a file name of one datafile in the fars_data.zip dataset.

Examples

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

## End(Not run)

cogitoergoread/fars documentation built on Jan. 25, 2020, 1:12 p.m.