Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
The function takes a file name or a file path pointing to a FARS data set ,
checks that the file exists and then reads it into a data frame format. This
is a lightweight wrapper around readr::read_csv()
.
1 | fars_read(filename)
|
filename |
a character string giving either the name of or the path to a file containing FARS data |
This function returns a tibble data frame.
An error is thrown if the file indicated does not exist.
1 2 3 4 | ## Not run:
fars_read("accident_2013.csv")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.