Description Usage Arguments Value Examples
The function will read files in the form "accident_'year'.csv.bz2" where 'year' is inputted
by user, read the data as a tibble and then select columns 'MONTH' and 'year' as output.
If file "accident_'year'.csv.bz2" does not exist, it will print a warning message and return
NULL. You can input the year using list(years)
argument.
1 | fars_read_years(years)
|
years |
The years in list you want to process |
a tibble with columns 'MONTH' and 'year'
1 2 | years <- list(2013,2014)
fars_read_years(years)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.