Description Usage Arguments Value References See Also Examples
fars_read_years
reads one or more years of FARS accident data to provide
the year and MONTH columns. If a file is not found a warning is returned that the
year is not valid (if the file does not contain a column named MONTH and a column named
year the same warning is issued).
1 | fars_read_years(years)
|
years |
vector of one or more years of files to read |
a list of one or more data frames (one for each year). Each data frame has two columns from each row of the files found:
MONTH is the numeric month (1 through 12)
year is the numeric year
for more information on FARS data see https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars
make_filename
for the file nameing convention used
1 2 3 4 | ## Not run:
my_df <- fars_read_years(2014:2016)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.