fars_read_years: Returns month and year from data

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function takes years as an input and automatically reads the corresponding data. Subsequently the month and the year for the specified years are returned as a list of tibbles.

Usage

1

Arguments

years

A character- or numeric vector. It specifies the year for which one wants to read the data from.

Value

This function returns a list of tibbles containing the month- and the year columns for the specified data. In case the the file for a specific year does not exist, the function will return NULL and print a warning message.

Examples

1
2
fars_read_years(2013)
fars_read_years(c("2014","2015"))

mkaywins/farsdata documentation built on Nov. 4, 2019, 6:59 p.m.