1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrappers.R
\name{sheets}
\alias{sheets}
\title{Returns names of worksheets.}
\usage{
sheets(wb)
}
\arguments{
\item{wb}{A workbook object}
}
\value{
Name of worksheet(s) for a given index
}
\description{
DEPRECATED. Use names().
}
\details{
DEPRECATED. Use \code{\link[=names]{names()}}
}
\examples{
## 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)
}
\seealso{
\code{\link[=names]{names()}} to rename a worksheet in a Workbook
}
\author{
Alexander Walker
}
|