make_filename: Makes the year based filename

Description Usage Arguments Value

View source: R/fars_functions.R

Description

The FARS accidents data is available as year based CSV file. The function takes the year and assumes the filename convention for FARS data and returns the filename for the given year.

Usage

1

Arguments

year

The year for which the filename is required. It could be any value that could coerced into integer, else it will prompt for error.

Value

This function returns the string filename which if exists contain the data for the accidents during that year

examples fars::make_filename(2021)

No export


akbarpunjwani/msdr-rpkgexample documentation built on Feb. 22, 2021, 3:59 a.m.