fars_read_years: Read years from a list of Fatality Analysis Reporting System

Description Usage Arguments Value Note See Also Examples

Description

This function generates lists of a projection of the data along the column month and year. filtered by the year as written in the file name.

Usage

1
fars_read_years(years,fars_path)

Arguments

years

a list of values corresponding to year

fars_path

charcter string correspondinf to the directory containing the fars data

Value

a list of dat frame tbl with MONTH and year columns

Note

See Also

fars_read

make_filename

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# need to be in the same directory as the data
setwd("data")
# with one year
fars_read_years(2013)
# with multiple years
fars_read_years(2013:2015)
# with characters
fars_read_years(c("2013","2015"))

## End(Not run)

BreizhZut/Fars documentation built on May 27, 2019, 2:04 p.m.