R/write_csv_timestamp.R

Defines functions write_csv_timestamp

Documented in write_csv_timestamp

#' write_csv_timestamp function
#'
#' check ordinal if they are ordinal
#' @param Click here and there
#' @keywords ordinal
#' @keywords
#' @export
#' @examples
#' @importFrom data.table fwrite

write_csv_timestamp<-function(data,filepath,filename) {
  library(dplyr)
  library(data.table)
  ts<-Sys.time() %>% format(.,"%Y-%m-%d")
  filepath<-paste0(filepath,filename,ts,".csv")
  fwrite(data,filepath)
}
senickel/sebstoolkit2 documentation built on May 26, 2019, 4:30 a.m.