Description Usage Arguments Value Examples
View source: R/fars_functions.R
make_filename creates a dynamic filename with a year given in input. The filename appear like "accident_year.csv.bz2". This function is call in "fars_read_years".
1 | make_filename(year)
|
year |
A integer which represents the desired year |
If the input type is a integer or can be convert into it, this function return the filename "accident_year.csv.bz2".Else, returns (1) the file "accident_NA.csv.bz2" and (2) a warning message (NAs introduced by coercion)
1 2 | make_filename(2013)
make_filename("2015")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.