make_filename: Make Filename From Year

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function takes a year as an argument and uses that to construct a valid filepath to the accident dataset for that year.

Usage

1

Arguments

year

The year you want to pull data from.

Value

This function returns a valid filepath within your R working directory.

Examples

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

## End(Not run)

kevin444/RpackageCoursera documentation built on June 29, 2020, 12:54 a.m.