make_filename: make_filename

Description Usage Arguments Value Note Examples

View source: R/fars_function.R

Description

This simple function makes a filename for the data associated to the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, according to a specified year.

Usage

1

Arguments

year

A numeric value giving the year to make the filename.

Value

This function returns the created filename with quotation marks.

Note

There will be errors if the year argument is absent or if the year is referenced to a non-existing object in the environment. If there is a character string in the year argument, R will introduce NAs by coercion.

Examples

1

kevortiz10/fars_package documentation built on Dec. 21, 2021, 6:36 a.m.