Description Usage Arguments Value Examples
View source: R/fars_functions.R
The function takes the argument year
and casts it to an integer before inserting it within
the pattern accident<year>.csv.bz2
and returning the result. If year
cannot be cast
to an integer then 'NA' is placed in the file name for the integer year.
1 | make_filename(year)
|
year |
An integer value repersenting the year. |
This function returns a text string file name constructed from the the integer year embedded into a pattern.
1 2 3 4 5 6 | ## Not run:
#' yearfile <- make_filename(current_year)
yearfile2 <- make_filename(2010)
yearfile2 <- make_filename("2010")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.