fars_summarize_years: fars_summarize_years

Description Usage Arguments Value Examples

Description

This function takes in an argument "years" containing a list of year values, and calls the function fars_read_years to generate a list of data frames containing the MONTH and year values of the accident files corresponding to these years. It then calls the bind_rows function from dplyr package to combine these data frames into a single data frame, then returns the count for each of the twelve months of each of the years specified under "years".

Usage

1

Arguments

years

A list of year values.

Value

This function returns a data frame containing the number of observations for each month under the accident data files of each of the corresponding years.

Examples

1
dat_sum <- fars_summarize_years (c(2013, 2014))

izlude83/week4 documentation built on May 14, 2019, 6:03 a.m.