Description Usage Arguments Details Value Examples
This is a function that reads multiple csv files in the standard format of accident_YEAR.csv.bz2
into R.
The function reads a vector or list of year values and calls make_filename
to create the csv file names
and then calls fars_read
to read in the csv files
1 | fars_read_years(years)
|
years |
A vector or list of year values |
An error message is provided if no csv files are present in the current working directory under the year values that are provided,
A list of tibbles - one for each year
1 2 3 4 5 | ## Not run:
fars_read_years(c("2014", "2015"))
fars_read_years(list("2014", "2015"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.