R/excel_export.R

Defines functions excel_export

Documented in excel_export

excel_export <- function(x, file, table_names=as.character(1:length(x)), ...) {
  
  if(class(x)=="data.frame") x <- list(x)

  names(x) <- table_names
  
  writexl::write_xlsx(x, file)

}

Try the ImportExport package in your browser

Any scripts or data that you put into this service are public.

ImportExport documentation built on Jan. 13, 2021, 7:39 a.m.