make_filename: Create File Name FARS Dataset

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

Takes either a number or a string that is the year with no spaces to create a file name for a FARS CSV to read in the data

Usage

1

Arguments

year

string or numeric that indicates the year of the FARS data that the file name will be created to read.

Value

a string that is the file name to be used in fars_read for the input year

Note

Warning: Will not work if year is not 2013, 2014, or 2015 as those are the only years with data files

Examples

1
 ## Not run: make_filename(2013)

dhaycraft/trafficR documentation built on Nov. 4, 2019, 10:30 a.m.