Description Usage Arguments Value Examples
For each year in the input list, reads the fars data file for that year, and returns a tibble with one row per fatal accident. The only data in the row is the year and month of the accident. The tibbles are only useful for later counting by month and year. Returns a NULL list element if a year in the list is not found in the local data, and issues a warning.
1 | fars_read_years(years)
|
years |
A list of four-digit years |
A list of tibbles, one list element for each year in years. Each tibble has one row per fatal accident, containing the month and year of the accident
1 2 3 | ## Not run: fars_read_years(list(2012))
## Not run: fars_read_years(list("2012"))
## Not run: fars_read_years(list(2012:2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.