fars_read_years: Read in Annual FARS data for Multiple Years

Description Usage Arguments Value See Also Examples

View source: R/fars_functions.R

Description

'fars_read_years()' is a helper function used by 'fars_summarize_years()', which reads in fetal traffic accident entries for specified years from accessible annual FARS data files within the current working directory

Usage

1

Arguments

years

a numeric vector of four digit numbers represents years in the format 'YYYY'

Value

A list of tibbles containing annual accident entries that corresponds to years specified in the argument. An invalid input value (year) will cause a NULL value to be returned to the list and an "invalid year..." warning.

See Also

fars_read and make_filename, which this function wraps

Examples

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

## End(Not run)

johnxz/farsr documentation built on Dec. 21, 2021, 2:14 a.m.