cloneWorksheet | R Documentation |
Clone a worksheet to a Workbook object
cloneWorksheet(wb, sheetName, clonedSheet)
wb |
A Workbook object to attach the new worksheet |
sheetName |
A name for the new worksheet |
clonedSheet |
The name of the existing worksheet to be cloned. |
XML tree
Reinhold Kainhofer
## Create a new workbook
wb <- createWorkbook("Fred")
## Add 3 worksheets
addWorksheet(wb, "Sheet 1")
cloneWorksheet(wb, "Sheet 2", clonedSheet = "Sheet 1")
## Save workbook
## Not run:
saveWorkbook(wb, "cloneWorksheetExample.xlsx", overwrite = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.