Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function extract the month and the year for each observation (accident) of a file and put the results in a list. In the list there is one element for each year and each element is a tibble with 2 columns (MONTH and year) for each accident.
1 | fars_read_years(years)
|
years |
One or more years, numeric integer value specified in form of a list. |
This function returns a list, one element for each specified year and each element is a tibble with 2 columns (MONTH and year), the number of observations is the number of accidents in the year. If the parameters are not legal integers the function return an error. If a specified year is not valid year, the function returns a warning message indicating the invalid year.
1 2 3 4 | ## Not run:
read_years<-fars_read_years(years=2013:2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.