Description Usage Arguments Value Note See Also Examples
This function makes use of readr's read_csv
to read a filename.
1 | fars_read(filename)
|
filename |
A character string giving the text the file will read |
This function returns a tbl_df object if file exist. (Warning: Function may fail if file does not exist)
function is part of an exercise in the week2 assignment of a coursera course titled, Building R Packages
function is for illustrative purposes, use with care
function assumes data is from nhtsa.gov
function assumes data can be found in the working directory
make_filename
for making a valid file name, fars_read_years
,
for extension of this functionality
1 2 | ## Not run: fars_read("accident_2013.csv.bz2")
## Not run: fars_read(make_filename(2013))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.