make_filename: make_filename creates a dynamic filename with a year given in...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

make_filename creates a dynamic filename with a year given in input. The filename appear like "accident_year.csv.bz2". This function is call in "fars_read_years".

Usage

1

Arguments

year

A integer which represents the desired year

Value

If the input type is a integer or can be convert into it, this function return the filename "accident_year.csv.bz2".Else, returns (1) the file "accident_NA.csv.bz2" and (2) a warning message (NAs introduced by coercion)

Examples

1
2

axellencls/roadAccidentsStudy documentation built on April 5, 2020, 12:53 a.m.