Description Usage Arguments Value Note Source See Also Examples
View source: R/fars_functions.R
This function will search for the input filename in the current directory, if the file exist, it will read in the file (.csv format) and store the file to current directory; or return error if the file does not exist.
1 | fars_read(filename)
|
filename |
a string indicates the name of the file. Can use |
This function returns a dataframe if the selected file exist; return an error message "file ... does not exist" if the file not exist.
To generate a file name, use make_filename
.
Data source: US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS), which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes. For more information, please see https://crashstats.nhtsa.dot.gov/#/DocumentTypeList/23.
1 | ## Not run: fars_read("accident_2013.csv.bz2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.