fars_read_years: Read CSV file and select the month and year columns, filtered...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

This function reads a CSV file, then filters its contents based on year and selects the MONTH and year columns.

Usage

1

Arguments

years

A vector or list of years to filter by.

Details

Returns a warning and NULL value if the file with year does not exist.

Value

Returns a list of tibbles consisting of two columns: month and years.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Existing integer or list of integers
fars_read_years(2013)
fars_read_years(2013:2015)

# If years contain a non-existing integer or it cannot be coerced to an integer, NA is returned
fars_read_years(2010)
fars_read_years(c(2013, "Not an integer"))

## End(Not run)

Davidovich4/building.an.R.package documentation built on May 29, 2019, 2:08 p.m.