Description Usage Arguments Details Value Note See Also Examples
This is a function that first checks if a file exists otherwise uses the read_csv function from readr to read the file suppressing the messages during that process. Finally it converts the data read above into a data frame
1 | fars_read(filename)
|
filename |
A name for the file to be read |
For more information, see:
https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars
https://en.wikipedia.org/wiki/Fatality_Analysis_Reporting_System
The data frame created after reading the file filename
To generate file name use: make_filename
make_filename
1 2 3 4 | ## Not run:
fars_read("accident_2015.csv.bz2")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.