Skip to contents

Return the sheet names of an rxlsx object, in the order they appear in the workbook.

Usage

sheet_names(x)

Arguments

x

an rxlsx object (created by read_xlsx()).

Value

A character vector of sheet names.

Examples

wb <- read_xlsx()
sheet_names(wb)
#> [1] "Feuil1"

wb <- add_sheet(wb, label = "new sheet")
sheet_names(wb)
#> [1] "Feuil1"    "new sheet"