View source: R/fars_functions.R
fars_read | R Documentation |
This is a function which checks whether a FARS file with a certain file name exists. An error will be thrown if a file by the user-supplied file name does not exist. If said file does exist, it will be read into R and transformed into a tibble.
fars_read(filename)
filename |
A character string giving the name of the FARS file. |
This function returns a tibble of the data contained in the
file named filename
and prints the first 10 rows of the
tibble.
## Not run: fars_read("accident_2014.csv.bz2") ## Not run: fars_read("accident_2013.csv.bz2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.