Description Usage Arguments Value Examples
Read data from the "Fatality Analysis Reporting System (FARS)"
This is a function that reads in data from the US National Highway Traffic Safety Administration's
Fatality Analysis Reporting System. It checks if the the data file exists and if so reads in the csv data,
(using the fars_read
argument). If the file does not exists, it prints "file "filename" does not exist".
The data is turned into a dataframe table. The function requires functions from the packages readr and dyplr.
1 | fars_read(filename)
|
filename |
The name of the file that is read in. |
This function reads in csv data, if the specified filename exists in the working directory, and turns it into a dataframe table. If the filename does not exist, "file "filename" does not exists" is printed.
1 | ## Not run: fars_read("accident_2013.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.