Description Usage Arguments Details Value Examples
fars_read
reads FARS data into the environment.
1 | fars_read(filename)
|
filename |
A character string giving the filename of the FARS data. |
This function reads data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS), given a filename for the data. It returns a tibble of the data. For this function to work properly, a filename pointing to an existing file must be given.
This function returns a tibble containing the FARS data. If an incorrect filename is entered the function will stop.
1 2 3 4 5 6 7 8 | full_filename <- system.file('extdata', 'accident_2013.csv.bz2',
package = 'farsdata')
fars_read(filename = full_filename)
## Not run:
fars_read(filename = 'filedoesnotexist')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.