fars_read_years: Reads month and year from accident files

Description Usage Arguments Value

View source: R/fars_functions.R

Description

The function takes a vector (or list) of years and returns a list of data frames with month and year columns based on data "accident_<year>.csv.bz2 files. The files need to be located in the working directory.

Usage

1

Arguments

years

Vector (or list) of years in numeric format.

Value

Returns a list of data frames (tibble) "accident_<year>.csv.bz2" data Returns NULL and a warning if the file does not exist.


A0791298/CourseraPackage documentation built on Jan. 8, 2020, 2:45 a.m.