make_filename: Make data file name

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function takes a year, and returns the name of a file containing the data from that year.

Usage

1

Arguments

year

Year the data concerns.

Value

Returns a string of the form accident_{year}.csv.bz2 where year is the parameter given to the function.

Note

Parameter year is converted to an integer with the as.integer function.

Examples

1
2
make_filename(2020)
make_filename(2020.10) # Note how the year is converted to an integer

adbjesus/assignment04 documentation built on July 2, 2020, 6:24 p.m.