Description Usage Arguments Details Value See Also Examples
View source: R/fars_functions.R
Formats string file name to facilitate loading FARS files.
1 | make_filename(year)
|
year |
An four-digit year to be assigned to file name. Function accepts both integers and strings as it converts the latter to an integer before assembling file name. |
Helper function used with other functions in this package, specifically
fars_read_years
, fars_map_state
.
Returns a string in FARS format with year
embedded. The file
name has .csv.bz2 file extensions.
fars_read
is called as a helper function in
fars_read_years
, fars_map_state
1 2 3 4 5 | ## Not run:
make_filename("2015")
make_filename("2016")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.