Description Usage Arguments Details Examples
View source: R/fars_functions.R
Generate the name of the file
1 | make_filename(year)
|
year |
An integer or string indicating the year that generate the data file. |
This function uses the year (input) to generate the file name for the Fatality
Analysis Reporting System (FARS) data file. It converts the year into an integer and
then uses the sprintf()
function to format the file name.
1 2 3 4 | ## Not run:
make_filename(2014) #generates "accident_2014.csv.bz2"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.