fars_read_years: Extract month list for the selected years from data

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function creates a character string of the file name for the given year with make_filename. Then, it reads that file with fars_read. It adds the year as and additional field to the table frame. Finally it selects month and year from data. This function can handle this process with multiple inputs.

Usage

1

Arguments

years

The numeric array for years

Value

The table frame including months for the given years from the data

Note

Also, it turns into a warning message if any error occurs. It means the given year is not valid.

Examples

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

## End(Not run)

cemreyilmaz/tester documentation built on Dec. 19, 2021, 2:54 p.m.