Learn R Programming

officer (version 0.7.6)

sheet_names: Sheet names of an xlsx workbook

Description

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

Usage

sheet_names(x)

Value

A character vector of sheet names.

Arguments

x

an rxlsx object (created by read_xlsx()).

Examples

Run this code
wb <- read_xlsx()
sheet_names(wb)

wb <- add_sheet(wb, label = "new sheet")
sheet_names(wb)

Run the code above in your browser using DataLab