Description Usage Arguments Value Warning Examples
View source: R/fars_functions.R
It creates a data filename string using the format of the US National Highway Traffic Safety Administration in the Fatality Analysis Reporting System for a specific year.
1 | make_filename(year)
|
year |
A numeric vector representing the years in a time period. |
A character vector corresponding to the data filenames specified in the time period.
If the year
parameter cannot be coerced as an integer, the function
will throw a warning that the information will not be read.
1 2 3 4 5 | # We set the working directory where the compressed files are stored within
# the package.
WD <- setwd(system.file("extdata", package = "rfars"))
make_filename(2013)
setwd(WD)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.