Description Usage Arguments Value Examples
This function imports the data from multiple files, specified by the input years, and generates a list of objects indexed by the input value. Each object can be either a tibble of two columns (year and MONTH representing the time of an accident), when the the file exits, or NULL, when the data file is unavailable. In the latter case, a warning message will be printed to the console.
1 | fars_read_years(years)
|
years |
A numeric vector specifying a selection of years in 4-digit numbers. |
A list of tibble objects. Each object contains the data from the corresponding file of that year.
1 2 3 4 5 | ## Not run:
fars_read_years(2013)
fars_read_years(c(2013, 2014, 2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.