fars_read_years: Read files from given year and extracts month information in...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This is a function that reads csv files according to given years and then extracts month and year information from data. The function throws a warning if accident file for a year cannot be found.

Usage

1

Arguments

years

A list of string of years that will be used to find the files.

Value

This function returns a list of either data frame where each data frame contains the MONTH and year column of the dataset or NULL if one or more files corresponding to year in years do not exist.

Examples

1
## Not run: fars_read_years({"1996", "2013","2014"})

yecong/accdata documentation built on Sept. 8, 2018, 9:30 p.m.