Description Usage Arguments Details Value References See Also Examples
View source: R/fars_functions.R
Read Fatality Analysis Reporting System (FARS) data from
US National Highway Traffic Safety Administration.
fars_read
reads a file defined by filename
from the current
working directory.
1 | fars_read(filename)
|
filename |
(character) The file to be read. |
If fars_read
cannot find the given filename in the current
directory an error is thrown. It is recommended to use
make_filename
to create a filename for a given year
according to the FARS filenaming scheme.
fars_read
is a helper function for fars_read_years
FIBS data is returned as tibble (see tbl_df
)
US National Highway Traffic Safety Administration
(https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars)
make_filename
, fars_read_years
1 2 3 4 5 | ## Not run:
year <- 2014
df <- fars_read(make_filename(year))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.