make_filename: Create a year-specific FARS data filename

Description Usage Arguments Value Examples

Description

This is a helper function function that, given a year, returns a file name for a FARS dataset.

Usage

1

Arguments

year

an integer, or an object that can be coerced into an integer, representing the year of FARS data

Value

This function returns a character strig for a year-specific FARS dataset.

Examples

1
2
3
4
my_file <- system.file("extdata", "fars_data.zip", package = "fars")
unzip(my_file, junkpaths = TRUE)
file_name <- make_filename(2013)
fars_read(file_name)

vadimus202/fars documentation built on May 3, 2019, 2:41 p.m.