Description Usage Arguments Value Examples
fars_read
reads in Fatality Analysis Reporting System (FARS) data
for a given filename
, if the file exists.
1 | fars_read(filename, path = "inst/extdata")
|
filename |
The name of the FARS data file to read. |
path |
The path to the FARS data file to read. The default is the path to the three supplied raw data files. |
A table of FARS data.
1 2 3 4 | ## Not run: fars_read(filename = "accident_2013.csv.bz2")
## Not run: fars_read(filename = "accident_2014.csv.bz2"))
## Not run: fars_read(filename = "accident_2015.csv.bz2")
## Not run: fars_read(filename = "file_does_not_exist.csv", path = "bad/path") # Results in an error
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.