| saveXlsx | R Documentation |
saveXlsx This function save the current workbook as filename
saveXlsx(filename = "", wb = NULL)
filename |
An optional filename (if empty the current filename will be used ) |
wb |
A optional workbook created or opened by xlsx If not specified, the last workbook loaded with loadXlsx will be used |
nothing
# Creating an empty workbook
wb <- openxlsx::createWorkbook()
sheetname <- "First Sheet"
openxlsx::addWorksheet(wb, sheetName = sheetname)
# Writing a data frame in the workbook
fillCells(wb = wb,
onesheet = sheetname,
line = 1,
col = 1,
iris)
# Saving the Excel file
## Not run:
saveXlsx(filename = "test.xlsx", wb = wb)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.