Description Usage Arguments Value References See Also Examples
View source: R/fars_functions.R
fars_read
reads data regarding fatal injuries suffered in
motor vehicle accidents in the US, as reported by the Fatality
Analysis Reporting System (FARS) of the US National Highway
Traffic Safety Administration.
1 | fars_read(filename)
|
filename |
A character string containing the name of the file to read. It is assumed to be a csv file (possibly compressed) as provided by FARS. |
The function returns a tibble data frame (class tbl_df) as defined ' by the dplyr package. If the file does not exist, the function returns ' a NULL value. '
https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars
make_filename
, fars_read_years
1 | df <- fars_read(make_filename(2014,dir=system.file("extdata",package="msdr3pam")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.