make_filename: make_filename

Description Usage Arguments Value Warning Examples

View source: R/make_filename.R

Description

This function creates a fars filename for a user specified year. This file name can be passed to the fars_read function.

Usage

1

Arguments

year

in 4 digit number format,'YYYY' format.

Value

A character or number vector containing a formatted combination of text and variable values.

Warning

The format string is passed down the OS's sprintf function, and incorrect formats can cause the latter to crash the R process . R does perform sanity checks on the format, but not all possible user errors on all platforms have been tested, and some might be terminal.

Examples

1
2
3
filename <- make_filename(2013)
#  filename 
# "accident_2013.csv.bz2"

JustinMShea/Fatality-Analysis-Reporting-System documentation built on Sept. 20, 2017, 12:01 a.m.