make_filename: Names file with year

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function appends the year to the filename. The function take the year as an argument to append to standard file name "accident_year.csv"

Usage

1

Arguments

year

A character string or numeric as year

Value

the function prints the static filename appended with year name passed as argument. The functions throws an error when a non character or non numeric value is passed as an argument.

Examples

1
2
3
## Not run: make_filename(1976)
## Not run: make_filename("1976")
## Not run: make_filename(76)

ybbsharma/sofars2 documentation built on May 4, 2019, 2:31 p.m.