Returns names of worksheets.

Share:

Description

Returns names of worksheets.

Usage

1
sheets(wb)

Arguments

wb

A workbook object

Details

DEPRECATED. Use names

Value

Name of worksheet(s) for a given index

Author(s)

Alexander Walker

See Also

names to rename a worksheet in a Workbook

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Create a new workbook
wb <- createWorkbook()

## Add some worksheets
addWorksheet(wb, "Worksheet Name")
addWorksheet(wb, "This is worksheet 2")
addWorksheet(wb, "The third worksheet")

## Return names of sheets, can not be used for assignment.
names(wb)
# openXL(wb)

names(wb) <- c("A", "B", "C")
names(wb)
# openXL(wb)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.