Learn R Programming

openxlsx (version 4.1.0)

getSheetNames: Get names of worksheets

Description

Returns the worksheet names within an xlsx file

Usage

getSheetNames(file)

Arguments

file

An xlsx or xlsm file.

Value

Character vector of worksheet names.

Examples

Run this code
# NOT RUN {
getSheetNames(system.file("readTest.xlsx", package = "openxlsx"))

# }

Run the code above in your browser using DataLab