Description Usage Arguments Value Examples
This is a simple function that reads data from a .csv file. That file is coming from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.
1 | fars_read(filename)
|
filename |
A character string giving the file name which will be reading by the function |
This function returns a dataframe with the information in the file. If the file does not exist, it will return an error.
1 2 3 | filename_param <- system.file('data', 'accident_2013.csv.bz2',
package = 'farsdata')
fars_read(filename = filename_param)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.