R/make_filename.R

Defines functions make_filename

Documented in make_filename

#' Create character string containing a file name
#'
#' @param year the year for which the file name is created
#' @return a CSV filename as a character string
#'
#' @export
make_filename <- function(year) {
  year <- as.integer(year)
  sprintf("accident_%d.csv.bz2", year)
}
tikizu/famove documentation built on Feb. 9, 2021, 10:14 p.m.