R/make_filename.R

Defines functions make_filename

Documented in make_filename

#' Makes a filename formatted with the given year input
#' @description The function make_filename creates a filename
#' with the given year make_filename takes string year as input and appends that year to the
#' filename
#' @param year as a string.
#' @return file name with the year attached
#' @examples
#' \dontrun{
#' make_filename("2013")}
#'
#' @export
make_filename <- function(year) {
  year <- as.integer(year)
  sprintf("accident_%d.csv.bz2", year)
}
SivaVijaya/myfars documentation built on Dec. 18, 2021, 2:06 p.m.