addWorksheet | R Documentation |
This function and its methods allow one to create a new worksheet within an Excel workbook.
addWorksheet(doc, name = sprintf("Sheet%d", num), data = NULL,
update = TRUE, num = getNextSheetNumber(doc))
doc |
the Excel archive |
name |
the name to use in the tab for the new sheet |
data |
currently ignored. This is could be a data frame which would then be added to |
update |
a logical value indicating whether to write the changes to the Excel archive. |
num |
the new total number of worksheets. |
If update
is TRUE
, this returns a
Worksheet
object representing the new work sheet.
If update
is FALSE
, the updated
XML documents are returned as a named list.
These can then be inserted later into the archive.
Duncan Temple Lang
Office Open documentation
Worksheet-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.