This function creates a fars filename for a user specified year. This file name can be passed to the fars_read function.
in 4 digit number format,'YYYY' format.
A character or number vector containing a formatted combination of text and variable values.
The format string is passed down the OS's sprintf function, and incorrect formats can cause the latter to crash the R process . R does perform sanity checks on the format, but not all possible user errors on all platforms have been tested, and some might be terminal.
1 2 3
filename <- make_filename(2013) # filename # "accident_2013.csv.bz2"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.