this function reads data set availavle in csv files from the NHTSA Fatality Analysis Reporting System (FARS)
A character string giving the name of the .csv file
Returns a data frame from a csv file in tabular format
the function returns a tibble (data.frame) based on the CSV file
the csv file in the format of Data Frame Tbl
dplyr and tbl_df is used to format the returned data frame
if file does not exist in the repository or if the file path is incorrect then the function will stop working
if the given information is correct the function will return the Data Frame Tbl of the csv file
files need to be located in the working directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.