Description Usage Arguments Details Value Note Examples
This is a function that loads the columns MONTH of the accident data for all specified years (specified using the years
argument) and returns a list.
1 | fars_read_years(years)
|
years |
a numeric vector, representing the years for which the accident_data should be loaded. |
This function combines the fars_read and make_filename function. The external functions mutate
, select
, tbl_df
and read_csv
are included.
Therefore the dplyr and readr package has to be installed and loaded.
This function returns list for all the years specified in the years
argument. Every entry of the list is a data.frame with the columns year and MONTH.
If for an element of the years
argument no file is found a warning occurs.
1 2 | ## Not run: myData <- fars_read_years(c(2013,2014))
## Not run: myData <- fars_read_years(2014)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.