fars_summarize_years: 'fars_summarize_years' return the data.frame with total...

Description Usage Arguments Value Source See Also Examples

View source: R/fars_functions.R

Description

fars_summarize_years return the data.frame with total number of accidents for each month. the files need to be in the working directory.

Usage

1

Arguments

years

a list or vector of integers/characters - years of origin

Value

a data.frame in a wide format with total number of accidents for each month

Source

Coursera Mastering Software Development in R - Johns Hopkins University

See Also

make_filename fars_read_years fars_read fars_map_state

Examples

1
2
3
4
5
## Not run: 
   fars_summarize_years(2013:2015)
   fars_summarize_years(list(2014:2015)) #example of error

## End(Not run)

Polkas/farsfuns documentation built on Nov. 18, 2017, 8:52 a.m.