Description Usage Arguments Details Value Depends on Examples
View source: R/fars_functions.R
This is a function that reads the annual FARS data file
for concrete year properly specified by filename
argument.
Filename could be generated with make_filename
function.
1 | fars_read(filename)
|
filename |
character string |
The FARS data should be R in the working directory
This function returns a data frame.
read_csv
in the readr
package.
tbl_df
in the dplyr
package.
1 2 3 4 5 | ## Not run:
fars_read("accident_2014.csv.bz2")
fars_read(make_filename(2014))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.