powered by
Clone a worksheet to a Workbook object
wb_clone_worksheet(wb, old = current_sheet(), new = next_sheet())
The wb object
wb
A wbWorkbook object
Name of existing worksheet to copy
Name of New worksheet to create
Other workbook wrappers: wb_add_data_table(), wb_add_data(), wb_add_formula(), wb_add_worksheet(), wb_creators, wb_freeze_pane(), wb_get_base_font(), wb_save(), wb_set_col_widths(), wb_set_last_modified_by(), wb_set_row_heights(), wb_workbook(), workbook_grouping, ws_cell_merge
wb_add_data_table()
wb_add_data()
wb_add_formula()
wb_add_worksheet()
wb_creators
wb_freeze_pane()
wb_get_base_font()
wb_save()
wb_set_col_widths()
wb_set_last_modified_by()
wb_set_row_heights()
wb_workbook()
workbook_grouping
ws_cell_merge
# Create a new workbook wb <- wb_workbook("Fred") # Add worksheets wb$add_worksheet("Sheet 1") wb$clone_worksheet("Sheet 1", "Sheet 2")
Run the code above in your browser using DataLab