make_filename: –2– make_filename: Creates a filename.

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

The function creates a filename for a .csv.bz2 file based on the year argument in a form "accident_<year>.csv.bz2". It requires a numerical or integer input otherwise ends and returns an error.

Usage

1

Arguments

year

A numerical input which is defined as integer indicating a year of a data set.

Value

Returns a character variable in a format "accident_<year>.csv.bz2".

Examples

1
2
3
4
## Not run: 
makefilename(2016)

## End(Not run)

JimMeister/farsdata documentation built on May 28, 2019, 12:43 p.m.