fars_summarize_years: Read data for specified year(s) and combine into a data frame

Description Usage Arguments Details Value Examples

Description

This function reads a file for a specified year, uses the year to create a column name, selects the year and month columns, and converts the list into a single data frame in tibble format.

Usage

1

Arguments

years

A vector specifying the year(s) (YYYY format).

Details

This function takes the year input, reads in the data using fars_read_years, and stores the resulting data frames into a list. It then combines those data frames into a single tibble, the number of cases there are of each.

Value

This function returns a tibble for the data and selects the month and year columns.

Examples

1
2
fars_read_years(2013)
fars_read_years(c(2014, 2015))

jrwinget/Rfars documentation built on May 17, 2019, 12:11 a.m.