Description Usage Arguments Value Examples
This function takes a vector of years, reads the FARS data associated with these years and returns a list of data frame results containing the month and year column for each year's data frame. The FARS csv files you intend to read must be in your working directory otherwise the function will give you a warning: invalid year. The code for this function is part of the Building R Packages course sourced from coursera. Requires the dplyr and readr package to be loaded. Example data is only available for 2013:2015.
1 | fars_read_years(years)
|
years |
A vector of years that you wish to collect data for |
Returns a list containing data frame objects with columns month and year (or NULL / nothing if there was an error).
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.