Description Usage Arguments Value Examples
This is a helper function function that, given a year, returns a file name for a FARS dataset.
1 | make_filename(year)
|
year |
an integer, or an object that can be coerced into an integer, representing the year of FARS data |
This function returns a character strig for a year-specific FARS dataset.
1 2 3 4 | my_file <- system.file("extdata", "fars_data.zip", package = "fars")
unzip(my_file, junkpaths = TRUE)
file_name <- make_filename(2013)
fars_read(file_name)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.