Saves multiple data frames to a single Excel file.
save_data_xls(data_names, path, col_names = TRUE, format_headers = TRUE)
data frame or named list of data frames
Path, including filename, for Excel file.
Logical to include column names. Default = TRUE
Logical to format headers (bold and centered). Default = TRUE
a saved Excel file with named data saved to individual worksheets.
Saves multiple data frames to a multiple worksheets in a single Excel file.
The data must be loaded into R.
The `writexl` package is used so that Java is not necessary.
# Data (Test Lake)
data <- laketest
path <- tempfile(fileext = ".xlsx")
data_names <- list
# Save to Excel
save_data_xls(path
, data_names
, col_names = TRUE
, format_headers = TRUE)
#> Error in loadNamespace(x): there is no package called ‘writexl’