Description Usage Arguments Value Examples
View source: R/fars_functions.R
make_filename(year)
is a simple function to create file names for the data files. Fatality accident
files come in a compressed format with "accident_YYYY_.csv.bz2" The function preserves
the naming convention but differentiates the file with the "year" of the data.
1 | make_filename(year)
|
year |
Numerical value which will be used to name the file.If the parameter is not a numerical value representing a four digit year, the function will return an error message if non-numeric values entered. |
The function will return a file name with the year value embedded in the file name to be decompressed.
1 2 3 4 5 | ## Not run:
make_filename(2013)
make_filename(2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.