Description Usage Arguments Value Note Examples
This function reads data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System into R. It takes a filename as an argument.
1 | fars_read(filename)
|
filename |
A character string indicating the name of the file to be read |
This function returns a dataframe of the FARS data.
The function suppressess messages generated during the data read process and throws an error if the filename
does not exist in the working directory.
1 2 | fars_read(system.file("extdata", "accident_2013.csv.bz2", package = "FARS"))
## Not run: fars_read("does_not_exist.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.