make_filename: Create a default filename for a given year

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

The "make_filename" function creates a character vector, which describes the default filename for FARS files. You can customize the year in the filename (using the year argument). It saves the year to an integer variable inside the function, then concatenates the given year number with the "accident" sting and includes the file format, too.

Usage

1

Arguments

year

A number or vector of numbers describing the years. It can also be given as character values.

Value

This function returns a character vector, which is in the default format of the FARS filenames.

Examples

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

## End(Not run)

Solymi90/Fars.Assignment documentation built on May 27, 2019, 7:24 a.m.