make_filename: Make a file name

Description Usage Arguments Value Source Examples

Description

This function takes year character string and makes a file name that contains the FARS data for that particular year

Usage

1

Arguments

year

A numeric year in YYYY format

Value

A character string of the FARS data filename for that year

Source

The data used is from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS), which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.

Examples

1
2
3
4
5
6
## Not run: 
make_filename(2013)
make_filename(2014)
make_filename(2015)

## End(Not run)

diyanr/RPackageAssignment documentation built on May 15, 2019, 8:53 a.m.