appendNamedRegion-methods | R Documentation |
Appends data to an existing named region.
## S4 method for signature 'workbook,ANY'
appendNamedRegion(object,data,name,header,overwriteFormulaCells,rownames,worksheetScope)
object |
The |
data |
Data to write |
name |
Name of the (existing) named region to which to append the |
header |
Specifies if the column names should be written. The default is |
overwriteFormulaCells |
Specifies if existing formula cells in the |
rownames |
Name ( |
worksheetScope |
Optional character vector with worksheet name(s) to target a |
Appends data
to the existing named region specified by name
. The data
is
appended at the bottom of the named region. See writeNamedRegion
for further information on writing named regions.
Named regions are automatically redefined to the area occupied by the
previous and the newly appended data. This guarantees that the complete set
of data can be re-read using readNamedRegion
.
Note however, that no checks are performed to see whether the appended data has the
same shape/structure as the previous data.
Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch
workbook
,
writeNamedRegion
,
readNamedRegion
,
writeWorksheet
,
appendWorksheet
,
readWorksheet
## Not run:
# mtcars xlsx file from demoFiles subfolder of package XLConnect
demoExcelFile <- system.file("demoFiles/mtcars.xlsx", package = "XLConnect")
# Load workbook
wb <- loadWorkbook(demoExcelFile)
# Append mtcars data set to named region named 'mtcars'
appendNamedRegion(wb, mtcars, name = "mtcars")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.