File: names.Rd

package info (click to toggle)
r-cran-openxlsx 4.2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,328 kB
  • sloc: cpp: 1,867; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 607 bytes parent folder | download | duplicates (2)
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrappers.R
\name{names}
\alias{names}
\alias{names.Workbook}
\alias{names<-.Workbook}
\title{get or set worksheet names}
\usage{
\method{names}{Workbook}(x)

\method{names}{Workbook}(x) <- value
}
\arguments{
\item{x}{A \code{Workbook} object}

\item{value}{a character vector the same length as wb}
}
\description{
get or set worksheet names
}
\examples{

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)
}