Description Usage Arguments Value Note Examples
View source: R/fars_function.R
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.
1 | make_filename(year)
|
year |
A numeric value giving the year to make the filename. |
This function returns the created filename with quotation marks.
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.
1 | make_filename(2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.