read_excel_table: Read Excel tables

View source: R/read_functions_excel.R

read_excel_tableR Documentation

Read Excel tables

Description

read_excel_table() reads a table object from an Excel workbook.

Usage

read_excel_table(wb, table_name, table_df = NULL)

Arguments

wb

A workbook object

table_name

A character name of a table to read.

table_df

A dataframe of table references, built using get_excel_tables(). If NULL the table will be built.

Value

A tibble with the table.

See Also

Other Read Excel tables: get_excel_tables()

Examples

example_file <- system.file("examples/excel_examples.xlsx", package = "costmisc")

wb <- openxlsx::loadWorkbook(example_file)
head(read_excel_table(wb, "tbl_mtcars"))


Technomics/costmisc documentation built on Nov. 12, 2024, 8:05 a.m.