fars_read_years: Read fars data based on input year

Description Usage Arguments Value Examples

Description

Generates string name from given input _year_, check if a matching input file exists in current working directory and if found, reads the data. If matching file is not found in the current working directory, it throws an __invalid year__ error.

Usage

1

Arguments

years

Year (YYYY). This parameter isn't initialisied by default. Handles integers, floats as well as strings.

Value

This function returns a subset of fars data containing only the year and month values in long format

Examples

1
2
3
4
5
## Not run: 
fars_read_years(2013)
fars_read_years("2013")

## End(Not run)

debajyoti7/coursera_Rpackage_final documentation built on May 15, 2019, 1:53 a.m.