make_filename: Creating a compromized file name

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

The function make_filename creates a pre-defined name of a bz2 zipped file, which is accident_year.csv.bz2. The year is the input of the function. A warning occurs, if the input parameter is a single value but cannot be converted into a integer, because year is then NA.

Usage

1

Arguments

year

A string or number indicating the year for naming the file

Details

An error occurs, if the input cannot be coerced to type integer - e.g. for dataframes.

Value

A character string, indicating the zipped file name like accident_year.csv.bz2

Examples

1

alex2905/coursera documentation built on May 17, 2019, 8:04 a.m.