Description Usage Arguments Value See Also Examples
View source: R/fars_functions.R
Create to a list of years and months for each year in years Create filename for a given list vector of year and for each year the function return a data frame with month in which at least an accident is realized for each year in years
1 | fars_read_years(years)
|
years |
list or vector of integer which contains the years for which the accidents data are needed |
A list or data.frame of the same length as years which contains
for each year from years the list of Months of each accident.
if in the list of years a year is not numeric [fars_read_years]
returns NULL with warning message.
* make_filename to create filename
* fars_read to read accidents data from csv format
1 2 3 4 5 6 7 8 | ## Not run:
list_filename <- fars_read_years(years = "2013")
## End(Not run)
## Not run:
list_filename <- fars_read_years(years = c("2013", "2014", "2015"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.