Description Usage Arguments Value Examples
View source: R/fars_function.R
fars_read A funtion that checks if the file exists and returns the content as tbl_df. No need to be exported as it's mainly used inside the package
1 | fars_read(filename)
|
filename |
A character containing the filename built with the |
returns a dataframe (more exactly a tbl_df from dplyr) with the information from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. If the filename doesn't exists it returs an error.
1 2 3 4 5 | ## Not run:
fars_read('accident_2015.csv.bz2')
fars_read(make_filename(2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.