Description Usage Arguments Value Examples
The fars_read()
function uses the read_csv()
function from
the readr
package to read in a data set and converts it to the
tdl_df
format known from the dplyr
and tibble
packages.
The function has been developed to read in FARS data but works with every data format
that is accepted by readr::read_csv()
. It gives a warning
if the specified file name does not exist.
1 | fars_read(filename)
|
filename |
A character string with the name of the file you want to read in |
This function returns the data from the input file in tbl_df
class
(see R documentation for the tibble
package).
1 | ## 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.