appendNamedRegion-methods(XLConnect)
appendNamedRegion-methods()所属R语言包:XLConnect
Appending data to a named region
数据附加到指定的区域
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Appends data to an existing named region.
将数据追加到现有的命名区域。
用法----------Usage----------
## S4 method for signature 'workbook,ANY'
appendNamedRegion(object,data,name,header,rownames)
参数----------Arguments----------
参数:object
The workbook to use
workbook使用
参数:data
Data to write
要写入的数据
参数:name
Name of the (existing) named region to which to append the data
(现有的)命名区域的名称追加data
参数:header
Specifies if the column names should be written. The default is FALSE.
指定的列名应写。默认的FALSE。
参数:rownames
Name (character) of column to use for the row names of the provided data object. If specified, the row names of the data object (data.frame) will be included as an additional column with the specified name. If rownames = NULL (default), no row names will be included.
名称(character)用于提供data对象的行的名称的列。如果指定的行名的数据对象(data.frame)将包含一个额外的列具有指定名称。如果rownames = NULL(默认),则没有行名称将被列入。
Details
详细信息----------Details----------
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.
追加data指定的name现有的命名区域。 data所附在命名区域底部。见writeNamedRegion的为进一步信息编写命名的区域。
注意----------Note----------
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.
命名区域自动重新定义,以先前的和新追加的数据所占用的面积。这一套完整的数据重新读取readNamedRegion担保。但是请注意,没有检查被执行,见所附的数据是否作为以前的数据具有相同的形状/结构。
(作者)----------Author(s)----------
Martin Studer<br>
Mirai Solutions GmbH <a href="http://www.mirai-solutions.com">http://www.mirai-solutions.com</a>
参见----------See Also----------
workbook, writeNamedRegion, readNamedRegion, writeWorksheet, appendWorksheet, readWorksheet
workbook,writeNamedRegion,readNamedRegion,writeWorksheet,appendWorksheet,readWorksheet
实例----------Examples----------
# mtcars xlsx file from demoFiles subfolder of package XLConnect[mtcars xlsx文件demoFiles子文件夹中的包XLConnect]
demoExcelFile <- system.file("demoFiles/mtcars.xlsx", package = "XLConnect")
# Load workbook[负载工作簿]
wb <- loadWorkbook(demoExcelFile)
# Append mtcars data set to named region named 'mtcars'[附加mtcars数据设置到命名区域名为“mtcars的”]
appendNamedRegion(wb, mtcars, name = "mtcars")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|