Description Usage Arguments Value Examples
This function is used to sumarize number of rows per month for individual year as column and month as row format data table. This function will read data table for each year in array and then bind them all togather and converts multiple data frame into single data table and provides summary for each month.
1 | fars_summarize_years(years)
|
years |
A charector string or Integer or vector of Years to get dataset |
Returs data table for number of accidents for each year where yeras are columns and row represents month number. Function will throw warning if data for individual year not found or error in processing individual year's data.
1 2 3 4 5 6 7 | ## Not run:
fars_summarize_years(2013)
fars_summarize_years("2013")
fars_summarize_years(c(2013,2014,2015))
fars_summarize_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.