Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
This function takes a year, and returns the name of a file containing the data from that year.
1 | make_filename(year)
|
year |
Year the data concerns. |
Returns a string of the form accident_{year}.csv.bz2
where year is the parameter given to the function.
Parameter year
is converted to an integer with the
as.integer function.
1 2 | make_filename(2020)
make_filename(2020.10) # Note how the year is converted to an integer
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.