View source: R/fars_functions.R
make_filename | R Documentation |
This function makes a FARS file name for a given year. It converts the string supplied by the user to an integer, then generates a file name for that year with the correct format. An error will be thrown if the supplied string cannot be coerced to an integer without introducing NA's.
make_filename(year)
year |
A character string giving the year for which a file name should be generated. |
A character string giving a file name formatted
accident_X.csv.bz2
where X is the string supplied to
year
.
## Not run: make_filename("2010") ## Not run: make_filename("2021")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.