Description Usage Arguments Details Value Examples
make_filename
is a simple helper function which maps a specified
year to its corresponding filename in the package structure.
1 | make_filename(year)
|
year |
An integer representing the requested datafile which belongs to the year from the package. |
This function is not designed for direct user interaction.
make_filename
is a helper function for fars_read_years
and
fars_map_state
. There are no error handling.
If a NULL object entered character(0) is returned.
A string representing filename which contains data for the specified year.
In case the input can not be coerced to an integer, the string "accident_NA.csv.bz2" returned.
1 2 3 4 | library(farspkg)
make_filename("2015")
make_filename(2014)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.