Description Usage Arguments Value Note See Also Examples
This function generates lists of a projection of the data along the column month and year. filtered by the year as written in the file name.
1 | fars_read_years(years,fars_path)
|
years |
a list of values corresponding to year |
fars_path |
charcter string correspondinf to the directory containing the fars data |
a list of dat frame tbl with MONTH and year columns
file names are generated with the make_filename
function
require to be run from the directory containing the data
each list element may contain duplicated month year tuple
fars_read
make_filename
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# need to be in the same directory as the data
setwd("data")
# with one year
fars_read_years(2013)
# with multiple years
fars_read_years(2013:2015)
# with characters
fars_read_years(c("2013","2015"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.