get or set worksheet names

# S3 method for Workbook
names(x)

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

Arguments

x

A Workbook object

value

a character vector the same length as wb

Examples

wb <- createWorkbook() addWorksheet(wb, "S1") addWorksheet(wb, "S2") addWorksheet(wb, "S3") names(wb)
#> [1] "S1" "S2" "S3"
names(wb)[[2]] <- "S2a" names(wb)
#> [1] "S1" "S2a" "S3"
names(wb) <- paste("Sheet", 1:3)