Description Usage Arguments Details Value Examples
make_filename
makes a file name by adding the given year as per FARS filename standard
1 | make_filename(year)
|
year |
An integer,a string or a numeric data type that can be coerced to an integer But this function can be improve by adding argument validation test, that will check if the input argument can be coerce to integer. If yes continue with coercion. Else ,request the users to provide a valid input argument. |
This function takes a year as input argument and produces a valid FARS filename as output. in this format: "accident_" + year + ".csb.bz2"
this function returns a string that is the proper FARS data filename for the given year. An erronous file name can be produce the param year was not validate.
1 2 3 4 | ## Not run:
make_filename(2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.