fars_read_years: Print "Read Yearly Accident Information from FARS Data"

Description Usage Arguments Value

View source: R/fars_functions.R View source: R/fars_functions.R

Description

This function reads a set of years entered by the user, and stores the months from those years after reading from the corresponding files.

Usage

1

Arguments

years

The function argument which stores a set of user-input years as integers.

file

Variable that stores file names corresponding to those years as string objects.

dat

Dataframe Table storing the file specified by "file" for all valid years.

Value

This function returns the months specified in "file", corresponding to the years entered, as a list object.

NULL returned and a warning message is thrown in case of invalid year value, using the tryCatch() function.


Urmimala-Nath/courseraAccFARS documentation built on July 30, 2020, 4:28 a.m.