fars_read_years: Creates a list of data frames by Year with its correspondent...

Description Usage Arguments Value Examples

Description

This function reads the data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes from a file type "accident_YEAR.csv.bz2", creates a data frame with multiple columns and selects the specified Years and their correspondent Month columns. Then it creates a list with separate data frames for each year. Each data frame contains two columns: month and year.

Usage

1

Arguments

years

A year or vector of years in numeric or integer format.

Value

List containing data frames for each year, each one with two columns: MONTH & Year. ERROR Null data frames & warnings if the introduced year(s) doesn't exist (file(s) doesn't exist).

Examples

1
2

LOT801106/FARS documentation built on May 10, 2019, 2:41 p.m.