make_filename: Generating name of the input file based on year provided.

Description Usage Arguments Value Examples

Description

This function returns the name of the file by formatting it with user supplied year.

Usage

1

Arguments

year

The year for which the information regarding fatal injuries is required. Valid value for <year> will be those year for which user has "Accident_<year>.csv" file present in the local directory.

Value

This function returns the name of the file for the year provided.

Examples

1
2
3
4
make_filename(2013)
yr<-2013
make_filename(yr)
make_filename(2015)

sonam-sharma/pushrepo documentation built on May 30, 2019, 4:10 p.m.