make_filename: Create filename for FARS data for specific year

Description Usage Arguments Value Note Examples

View source: R/fars_functions_documentation_v2.R

Description

This function creates a specific filename for a year to later read FARS data for the particular year stored in a file with this filename.

Usage

1

Arguments

year

A numeric or character string specifying a year.

Value

This function returns a character string with the name of the file. The filename is created by inserting the year into the string "accident_year.csv.bz2".

Note

The year needs to be between 2013 and 2015.

Examples

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

## End(Not run)

cThErLiLsK/farsvis documentation built on April 9, 2020, 12:26 a.m.