Description Usage Arguments Details Value Note Examples
This function reads data in a data file from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.
1 | fars_read(filename)
|
filename |
A file name that you want to read; it should be a character. |
fars_read(filename)
utilizes read_csv
.
In the end, this function provides a 'tbl_df
' class to a data frame.
See tibble-package
for more details.
This function returns a data frame table that stores data. However, If the file you want to read does not exist, it gives you an error message.
If you need to read data for multiple years at a time, use fars_read_years
.
In addition, you can use make_filename
to generate a file name
more easily.
1 | ## Not run: make_filename(2013) %>% fars_read
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.