fars_summarize_years: Summarize FARS data for multiple years

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

This is a function that reads and then summarises FARS data for one or more years specified by years argument and returnes summary data frame.

Usage

1

Arguments

years

numeric vector that specifies the years to summarise the data

Details

Summary table will be received

Value

This function returns a list of data frames

@section Depends on:

  1. bind_rows, group_by and summarize in the dplyr package.

  2. spread in the tidyr package.

Examples

1
2
3
4
5
6
## Not run: 
fars_summarize_years(c(2013, 2014, 2015))
fars_summarize_years(c(2013:2015))
fars_summarize_years(list(2013, 2014, 2015))

## End(Not run)

zpopovych/fars documentation built on May 20, 2019, 1:24 p.m.