fars_read_years: Read CSV file and Filter data by Month and Year

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

The function will read files in the form "accident_'year'.csv.bz2" where 'year' is inputted by user, read the data as a tibble and then select columns 'MONTH' and 'year' as output. If file "accident_'year'.csv.bz2" does not exist, it will print a warning message and return NULL. You can input the year using list(years) argument.

Usage

1

Arguments

years

The years in list you want to process

Value

a tibble with columns 'MONTH' and 'year'

Examples

1
2
years <- list(2013,2014)
fars_read_years(years)

askia318/CSVProcess documentation built on June 7, 2017, 11:52 a.m.