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.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.