readxl (version 1.3.1)

excel_sheets: List all sheets in an excel spreadsheet

Description

List all sheets in an excel spreadsheet

Usage

excel_sheets(path)

Arguments

path

Path to the xls/xlsx file.

Examples

# NOT RUN {
excel_sheets(readxl_example("datasets.xlsx"))
excel_sheets(readxl_example("datasets.xls"))

# To load all sheets in a workbook, use lapply
path <- readxl_example("datasets.xls")
lapply(excel_sheets(path), read_excel, path = path)
# }