make_filename: Create a file name.

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

This function returns a string, which is meant to be passed to the filename argument of the fars_read() function.

Usage

1

Arguments

year

A integer giving the year of a .csv file.

Details

This function takes a year as an argument, coerces that year to be an integer and then uses the sprintf function to concatenate the year argument into "accident_year.csv.bz2"

Value

This function returns a character string.

Examples

1

john-s-christensen/fars documentation built on May 17, 2019, 3 p.m.