fars_read_years: The function fars_read_years is used to take the year as an...

Description Usage Arguments Value Examples

View source: R/fars_read_years.R

Description

The function fars_read_years is used to take the year as an input and create a filename using make_filename function. The file is then read using the fars_read function. If the year is invalid it returns an error message

Usage

1

Arguments

years

takes a year as input,creates a filename, reads the information, adds a column for year then subsets the information, validates if there is an error and appropriately displays a warning message if an error occurs else returns "NULL"

Value

If an error is generated a warning message "invalid year: " with the invalid year information is displayed. If no error is generated it displays "NULL"

Examples

1
2

mstanley2017/CourseraAssignment3 documentation built on May 23, 2019, 8:16 a.m.