Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
Reads in file to data variable using the read_csv function and creates a dataframe summarizing the contents.
1 | fars_read(filename)
|
filename |
A character object which corresponds to a valid path of the data file. In case the file does not exist an error message is produced and execution stops. |
Building R Packages - Week 2 Assignment filename: fars_functions.R
These functions read in data taken from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System
The function returns a dataframe based on the CSV file.
1 2 3 4 | ## Not run:
accident_2015 <- fars_read(".inst/extdata/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.