putPerformanceTable(RXMCDA)
putPerformanceTable()所属R语言包:RXMCDA
Put a performance table in the XMCDA tree
将性能表在XMCDA树中
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Puts a performance table (performanceTable tag) in an XML tree written according to the XMCDA standard.
将性能表(performanceTable标签)编写的XML树的XMCDA标准。
用法----------Usage----------
putPerformanceTable(tree, performanceTable, mcdaConcept = NULL)
参数----------Arguments----------
参数:tree
Object containing the XMCDA XML tree.
Object,包含XMCDAXML树。
参数:performanceTable
A matrix representing the performance table (the lines are named according to the alternatives' IDs, the columns are named according to the criteria IDs).
性能表(线被命名为根据的替代品的ID,列矩阵的命名是根据标准的ID)。
参数:mcdaConcept
A string containing the specific mcdaConcept attribute which should be written.
一个字符串,其中包含的具体mcdaConcept属性应该写入。
值----------Value----------
The function returns a list structured as follows:
该函数返回一个列表结构如下:
参数:status
Either OK if the <performanceTable> tag could be correctly put, or the description of the error.
确认可以正确地把<performanceTable>标签,或对错误的描述。
实例----------Examples----------
performanceTable <- rbind(c(1,2,3),c(4,5,6))
rownames(performanceTable) <- c("x","y")
colnames(performanceTable) <- c("g1","g2","g3")
tree = newXMLDoc()
newXMLNode("xmcda:XMCDA", namespace = c("xsi" = "http://www.w3.org/2001/XMLSchema-instance", "xmcda" = "http://www.decision-deck.org/2009/XMCDA-2.1.0"), parent=tree)
putPerformanceTable(tree,performanceTable)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|