This function takes a vector as input that should specify the years of the accident files. For every specified year, the filename is made, the file is read and a tibble is created with only the columns “MONTH“ and “year“. For each year that does not match an error is thrown. Furthermore the function can only read data that sits in the current working directory.
A vector specifying the years of the accident csv files.
A list of tibbles with the columns “MONTH“ and “year“.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.