fars_summarize_years: Sumurize number of accidents per month for all provided years...

Description Usage Arguments Value Examples

Description

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.

Usage

1

Arguments

years

A charector string or Integer or vector of Years to get dataset

Value

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.

Examples

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)

garvish/datascience documentation built on May 16, 2019, 5:41 p.m.