wb_get_tables: List Excel tables in a worksheet

View source: R/class-workbook-wrappers.R

wb_get_tablesR Documentation

List Excel tables in a worksheet

Description

List Excel tables in a worksheet

Usage

wb_get_tables(wb, sheet = current_sheet())

Arguments

wb

A workbook object

sheet

A name or index of a worksheet

Value

A character vector of table names on the specified sheet

Examples


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")

openxlsx2 documentation built on Oct. 18, 2024, 1:07 a.m.