Clone a sheet and set new content
xlsxCloneAndSet.RdThis function wraps `openxlsx::cloneWorksheet` but sets new content in the cloned sheet.
See also
Other function to read from and write to xlsx:
setHeadersToLowerCase(),
splitInputs(),
xlsxAddDataUsingTemplate(),
xlsxAddSheet(),
xlsxReadData(),
xlsxWriteData()
Examples
if (FALSE) { # \dontrun{
wb <- loadWorkbook("example.xlsx")
data <- data.table(Name = c("Eve", "Frank"), Age = c(22, 35))
xlsxCloneAndSet(wb, "ExistingSheet", "ClonedSheet", data)
} # }