Learn R Programming

openxlsx (version 4.2.3)

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("extdata", "readTest.xlsx", package = "openxlsx"))
# }

Run the code above in your browser using DataLab