make_filename: Creates a string filename with a specific year

Description Usage Arguments Value Note Examples

Description

This function reads a year number as an integer and adds it to the general filename "accident_.csv.bz2", to create a string filename "accident_YEAR.csv.bz2".

Usage

1

Arguments

year

A year in numbers (character, integer or numeric) to add to the filename.

Value

A string of a filename as "accident_YEAR.csv.bz2", with the specified year. An error if year numbers are not character, integer or numeric. See note.

Note

if a text different from numbers is introduced, it won't be coerced to an integer and an error will be returned.

Examples

1
2

LOT801106/FARS documentation built on May 10, 2019, 2:41 p.m.