Learn R Programming

openxlsx2 (version 1.4)

wb_get_tables: List Excel tables in a worksheet

Description

List Excel tables in a worksheet

Usage

wb_get_tables(wb, sheet = current_sheet())

Value

A character vector of table names on the specified sheet

Arguments

wb

A workbook object

sheet

A name or index of a worksheet

Examples

Run this code

wb <- wb_workbook()
wb$add_worksheet(sheet = "Sheet 1")
wb$add_data_table(x = iris)
wb$add_data_table(x = mtcars, table_name = "mtcars", start_col = 10)

wb$get_tables(sheet = "Sheet 1")

Run the code above in your browser using DataLab