fars_summarize_years: Summarize multi-year Fatality Analysis Reporting System...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This is a function that takes a vector of 4 digit, called years, as input, read FARS data into a list of data frames, one for each year via fars_read_years. These multi-year FARS data will be summarized by counting the number of rows that exist for each year and month. The summarized data frame will have months as rows, and years as columns, while the row counts as the intersection of rows and columns.

Usage

1

Arguments

years

An vector of 4 digit integer or string indicating the year

Value

This function returns a data frame with FARS data for summarized by years and months.

Examples

1
2
   ## Not run: fars_summarize_years(c(2014,2015))
   ## Not run: fars_summarize_years((2013:2015))

sbudiman/brpextravis documentation built on May 17, 2019, 8:44 p.m.