make_filename: Create fars dataset name

Description Usage Arguments Value Examples

View source: R/functions.R

Description

This is a simple function to create names for datasets from US National Highway Traffic Safety Administration's Fatality Analysis Reporting System in the working directory to use them in the relevant functions. You can customize year in the dataset name (using the year argument).

Usage

1

Arguments

year

A number.

Value

This function returns file name concatinated with the year input. If input is integer or a class which can be coerced to integer, it easily return expected output, otherwise filename would include NA.

Examples

1
2
3

badalovi/pfars2 documentation built on April 24, 2020, 9:44 p.m.