fars_read_years: Read year and month columns from multiple datasets

Description Usage Arguments Value Examples

View source: R/functions.R

Description

This function allows you to read month and year columns in more than one datasets in working directory at once. It aimed to read datasets especially from US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.

Usage

1

Arguments

years

A numeric vector of which year's datasets should be readed.

Value

This function returns a list, year and month columns of loaded dataframes as elments. If the datasets are not available in the working directory, this function gives error like "warning("invalid year: ", year)".

Examples

1
2
3
4
## Not run: 
fars_read_years(c(2013,2014))

## End(Not run)

badalovi/pfars2 documentation built on April 24, 2020, 9:44 p.m.