Description Usage Arguments Value Note Source Examples
Replacing percent %d with year (given as input parameter) in string "accident_%d.csv.bz2"
1 | make_filename(year)
|
year |
A vector of years, provided as integers (1984) or strings ("1984", "2001"). Do not provide R 'Date' objects or shortened suffixes (eg 84) for a year. |
A vector of FARS filenames.
Year is converted to integer internally. We don't need to export it, as it's use case is mainly in functions from package
Coursera, Building R Packages
1 | make_filename(c(2012,2013)) #[1] "accident_2012.csv.bz2" "accident_2013.csv.bz2"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.