Learn R Programming

openxlsx (version 4.2.6.1)

getSheetNames: Get names of worksheets

Description

Returns the worksheet names within an xlsx file

Usage

getSheetNames(file)

Value

Character vector of worksheet names.

Arguments

file

An xlsx or xlsm file.

Author

Alexander Walker

Examples

Run this code
getSheetNames(system.file("extdata", "readTest.xlsx", package = "openxlsx"))

Run the code above in your browser using DataLab