Description Usage Arguments Value Note Examples
This function uses the data file with fatal injuries in motor vehicle traffic crashes in the USA based on the input and selects all the months (via the MONTH field) contained in the data file with the year(s), which is/are used as input.
1 | fars_read_years(years)
|
years |
An array of or single integer or character string denoting an array of years or a single year |
This function returns a list with repeating the month and per month the year
This function will give a message "invalid year: <year>" when the input file based on the input cannot be processed
1 2 3 4 5 6 | ## Not run:
fars_read_years(2013)
fars_read_years("2014")
fars_read_years(c(2013,2014))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.