R/covidWrite.R

Defines functions covidWrite

Documented in covidWrite

#' covidWrite
#'
#' @param x from covidDownload
#' @param localpath local path to hard drive to store written file
#'
#' @export
#'
covidWrite <- function(x, localpath=getwd()) {
  asof <-  max(x$date)
  write.csv(x, file = file.path(localpath, paste('covid by county by day as of ', asof, '.csv', sep = '')), row.names = FALSE)
}
ejanalysis/covidcountyshinyapp documentation built on Aug. 31, 2022, 7:46 a.m.