Description Usage Arguments Value Examples
View source: R/fars_read_years.R
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.
1 | fars_read_years(years)
|
years |
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 | ## Not run:
fars_read_years(2014)
fars_read_years("2014")
fars_read_years(c(2013,2014))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.