get or set worksheet names
# S3 method for Workbook names(x) # S3 method for Workbook names(x) <- value
x | A |
---|---|
value | a character vector the same length as wb |
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"