Description Usage Arguments Value Note Examples
Create a charactor string from the year matching the Fatality Analysis Reporting System naming convention
1 | make_filename(year)
|
year |
year selected for the dataset, can be numeric, integer or charactor |
character string corresponding to a formatted file name
user should enter a valid 4 digit value either as numeric or character
using a boolean for year would produce "accident_0.csv.bz2" or "accident_1.csv.bz2"
using alphabetical character would produce an error
1 2 3 | filename <- make_filename(2013)
filename <- make_filename(2013L)
filename <- make_filename("2013")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.