fars_read_years: function "fars_read_years"

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

The function returns a list of data frames per year which contains the corresponding columns "MONTH" and "year" with accidents

Usage

1

Arguments

years

A vector of years (a vector consisting of numbers with 4 digits)

Details

The function registered the warning "invalid year: <year>" and returns NULL if there is not a file for a year in the input parameter vector "years".

Value

This function returns a list with data frame per year which contains the corresponding columns "MONTH" and "year" with accidents

Examples

1
2
yyyys <- c(2014, 2015)
fars_read_years( years = yyyys )

ap-wi/fars documentation built on May 6, 2019, 4:37 p.m.