make_filename: Create a FARS data file name for a given year

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

FARS = Highway Traffic Safety Administration's Fatality Analysis Reporting System

Usage

1

Arguments

year

a character string or a integer that is a year, eg. "2014"

Value

a character string, a file name for FARS data for the given year

Note

If the input can't be coerced to an integer, a NA is introduced with warning

Examples

1
2
3
 fars_data_file_name <- make_filename("2014")
 print(fars_data_file_name)
 ## Not run: "accident_2014.csv.bz2"

jhimberg/r_packages_excercise documentation built on April 9, 2020, 11:10 p.m.