fars_read_years: Reads and extracts data for calculating crash counts

Description Usage Arguments Value Examples

Description

Reads FARS data for the specified years and extracts a list containing a data frame for each year. The list of data frames is in a format suitable for internal use by the fars_summarize_years function.

Usage

1

Arguments

years

Integer vector specifying year(s) to read.

Value

A list of data frames. Each data frame contains the variables year and MONTH with a row for each fatal crash that occurred in that year and month.

Examples

1
data_list <- fars_read_years(2013:2015)

davidbody/FARSAssignment documentation built on May 14, 2019, 10:37 p.m.