Description Usage Arguments Value Examples
View source: R/fars_functions.R
The "make_filename" function creates a character vector, which
describes the default filename for FARS files. You can customize the year in
the filename (using the year
argument). It saves the year to an
integer variable inside the function, then concatenates the given year
number with the "accident" sting and includes the file format, too.
1 | make_filename(year)
|
year |
A number or vector of numbers describing the years. It can also be given as character values. |
This function returns a character vector, which is in the default format of the FARS filenames.
1 2 3 4 5 6 | ## Not run:
make_filename(2013)
make_filename("2013")
make_filename(c(2013, 2014))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.