Description Usage Arguments Value Note References Examples
View source: R/fars_functions.R
This function reads US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS) data for given years.
1 | fars_read_years(years)
|
years |
an array of year numbers, eg. 2014 (integers or strings ) |
a tibble containing FARS data
The FARS data files are expected to be in the working directory and their names should be
of form accident_YYYY.csv.bz2
. Missing files cause an error.
(The specific FARS data format is as provided by Coursera course Building R Packages by Johns Hopkins Univ.)
Fatality Analysis Reporting System Mastering Software Development in R Specialization, Building R Packages by Johns Hopkins Univ., 2020
1 | ## Not run: dat <- fars_read_years(c(2013, 2014, 2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.