copyWorkbook: Copy a Workbook object.

Description Usage Arguments Value Examples

View source: R/wrappers.R

Description

Just a wrapper of wb$copy()

Usage

1

Arguments

wb

A workbook object

Value

Workbook

Examples

1
2
3
4
5
6
7
8
9
wb <- createWorkbook()
wb2 <- wb ## does not create a copy
wb3 <- copyWorkbook(wb) ## wrapper for wb$copy()

addWorksheet(wb, "Sheet1") ## adds worksheet to both wb and wb2 but not wb3

names(wb)
names(wb2)
names(wb3)

openxlsx documentation built on June 16, 2021, 9:06 a.m.