fars_read_years: Create to a list of years and months for each year in years...

Description Usage Arguments Value See Also Examples

View source: R/fars_functions.R

Description

Create to a list of years and months for each year in years Create filename for a given list vector of year and for each year the function return a data frame with month in which at least an accident is realized for each year in years

Usage

1

Arguments

years

list or vector of integer which contains the years for which the accidents data are needed

Value

A list or data.frame of the same length as years which contains for each year from years the list of Months of each accident. if in the list of years a year is not numeric [fars_read_years] returns NULL with warning message.

See Also

* make_filename to create filename * fars_read to read accidents data from csv format

Examples

1
2
3
4
5
6
7
8
## Not run: 
list_filename <- fars_read_years(years = "2013")

## End(Not run)
## Not run: 
list_filename <- fars_read_years(years = c("2013", "2014", "2015"))

## End(Not run)

BouranDS/accident documentation built on Aug. 22, 2020, 12:02 a.m.