names: get or set worksheet names

Description Usage Arguments Examples

Description

get or set worksheet names

Usage

1
2
3
4
5
## S3 method for class 'Workbook'
names(x)

## S3 replacement method for class 'Workbook'
names(x) <- value

Arguments

x

A Workbook object

value

a character vector the same length as wb

Examples

1
2
3
4
5
6
7
8
9
wb <- createWorkbook()
addWorksheet(wb, "S1")
addWorksheet(wb, "S2")
addWorksheet(wb, "S3")

names(wb)
names(wb)[[2]] <- "S2a"
names(wb)
names(wb) <- paste("Sheet", 1:3)

openxlsx documentation built on June 16, 2021, 9:06 a.m.